Fix return-non-void patch

OBS-URL: https://build.opensuse.org/package/show/games/widelands?expand=0&rev=12
This commit is contained in:
Dominique Leuenberger 2009-05-01 20:59:36 +00:00 committed by Git OBS Bridge
parent c2d41a4d8f
commit 4a71d56b90
2 changed files with 3 additions and 3 deletions

View File

@ -11,12 +11,12 @@ diff -ur widelands-b13/src/events/event_factory.cc widelands-b13.patched//src/ev
diff -ur widelands-b13/src/map.h widelands-b13.patched//src/map.h
--- widelands-b13/src/map.h 2008-10-10 22:53:46.000000000 +0200
+++ widelands-b13.patched//src/map.h 2009-05-01 22:40:39.000000000 +0200
+++ widelands-b13.patched//src/map.h 2009-05-01 22:58:33.000000000 +0200
@@ -1038,6 +1038,7 @@
case Map_Object::WALK_W: return l_n(f);
default:
assert(false);
+ case Map_Object::WALK_NW: return tl_n(f);
+ return tl_n(f);
}
}

View File

@ -40,7 +40,7 @@ perhaps will have a thought, what Widelands is all about.
sed -i 's#flagi#%{optflags}##' build/scons-tools/scons_configure.py
%build
export CCFLAGS="$optflags"
export CCFLAGS="$RPM_OPT_FLAGS"
scons build=release datadir=%{_datadir}/%{name} bindir=%{_bindir} localedir=%{_datadir}/%{name}/locale build_id=%{build_id}
# ./build-widelands.sh