diff options
Diffstat (limited to 'games/Scorched3D')
-rw-r--r-- | games/Scorched3D/Scorched3D.SlackBuild | 2 | ||||
-rw-r--r-- | games/Scorched3D/gcc.patch | 11 |
2 files changed, 13 insertions, 0 deletions
diff --git a/games/Scorched3D/Scorched3D.SlackBuild b/games/Scorched3D/Scorched3D.SlackBuild index d8370b3006..f69b108793 100644 --- a/games/Scorched3D/Scorched3D.SlackBuild +++ b/games/Scorched3D/Scorched3D.SlackBuild @@ -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 \ diff --git a/games/Scorched3D/gcc.patch b/games/Scorched3D/gcc.patch new file mode 100644 index 0000000000..d97aeeb894 --- /dev/null +++ b/games/Scorched3D/gcc.patch @@ -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); |