mirror of
https://github.com/Ponce/slackbuilds
synced 2024-10-01 06:32:51 +02:00
games/Scorched3D: Fix build on -current.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
04c44e2ad4
commit
6f296ea008
2 changed files with 13 additions and 0 deletions
|
@ -71,6 +71,8 @@ find -L . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
patch -p1 < $CWD/gcc.patch
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
|
|
11
games/Scorched3D/gcc.patch
Normal file
11
games/Scorched3D/gcc.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- scorched/src/common/weapons/AccessoryStore.cpp.orig 2017-07-07 22:27:57.777261322 +0700
|
||||
+++ scorched/src/common/weapons/AccessoryStore.cpp 2017-07-07 22:39:34.368313611 +0700
|
||||
@@ -156,7 +156,7 @@
|
||||
Accessory *parent, XMLNode *currentNode)
|
||||
{
|
||||
XMLNode *typeNode = 0;
|
||||
- if (!currentNode->getNamedParameter("type", typeNode)) return false;
|
||||
+ if (!currentNode->getNamedParameter("type", typeNode)) return 0;
|
||||
|
||||
AccessoryPart *accessoryPart =
|
||||
AccessoryMetaRegistration::getNewAccessory(typeNode->getContent(), this);
|
Loading…
Reference in a new issue