aboutsummaryrefslogtreecommitdiff
path: root/games/stuntrally/stuntrally-bullet-2.84+.patch
diff options
context:
space:
mode:
authorJeremy Hansen <jebrhansen+SBo@gmail.com>2017-01-23 13:38:36 +0000
committerDavid Spencer <idlemoor@slackbuilds.org>2017-01-24 00:21:50 +0000
commitd547cdb0919215448a1e8e9dd5ea7433a9553392 (patch)
treed48efd2cb02f8fa32f7bf7bdb264ddad532d9135 /games/stuntrally/stuntrally-bullet-2.84+.patch
parentc48942f59e121cd9066c97333d3818c33fcea531 (diff)
games/stuntrally: Added (game with Track Editor).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'games/stuntrally/stuntrally-bullet-2.84+.patch')
-rw-r--r--games/stuntrally/stuntrally-bullet-2.84+.patch62
1 files changed, 62 insertions, 0 deletions
diff --git a/games/stuntrally/stuntrally-bullet-2.84+.patch b/games/stuntrally/stuntrally-bullet-2.84+.patch
new file mode 100644
index 0000000000000..b07b352eacf26
--- /dev/null
+++ b/games/stuntrally/stuntrally-bullet-2.84+.patch
@@ -0,0 +1,62 @@
+diff --git a/source/ogre/CHud.cpp b/source/ogre/CHud.cpp
+index e3ae43f..037fa2e 100644
+--- a/source/ogre/CHud.cpp
++++ b/source/ogre/CHud.cpp
+@@ -6,7 +6,9 @@
+ #include "common/data/SceneXml.h"
+ #include "common/CScene.h"
+ #include "../vdrift/settings.h"
++#ifndef BT_NO_PROFILE
+ #include <LinearMath/btQuickprof.h>
++#endif // BT_NO_PROFILE
+ #include <OgreManualObject.h>
+ #include <OgreSceneManager.h>
+ #include <OgreSceneNode.h>
+@@ -151,7 +153,7 @@ void CHud::UpdDbgTxtClr()
+ }
+ }
+
+-
++#ifndef BT_NO_PROFILE
+ /// Bullet profiling text
+ //--------------------------------------------------------------------------------------------------------------
+
+@@ -214,3 +216,4 @@ void CHud::bltDumpAll(std::stringstream& os)
+
+ CProfileManager::Release_Iterator(profileIterator);
+ }
++#endif // BT_NO_PROFILE
+diff --git a/source/ogre/CHud.h b/source/ogre/CHud.h
+index ace2ca0..86c6150 100644
+--- a/source/ogre/CHud.h
++++ b/source/ogre/CHud.h
+@@ -154,7 +154,9 @@ public:
+ // string utils
+ Ogre::String StrClr(Ogre::ColourValue c);
+
++#ifndef BT_NO_PROFILE
+ // bullet debug text
+ void bltDumpRecursive(class CProfileIterator* profileIterator, int spacing, std::stringstream& os);
+ void bltDumpAll(std::stringstream& os);
++#endif // BT_NO_PROFILE
+ };
+diff --git a/source/ogre/Hud_Update.cpp b/source/ogre/Hud_Update.cpp
+index 18c650a..b33d808 100644
+--- a/source/ogre/Hud_Update.cpp
++++ b/source/ogre/Hud_Update.cpp
+@@ -597,6 +597,7 @@ void CHud::Update(int carId, float time)
+ }
+
+
++#ifndef BT_NO_PROFILE
+ // bullet profiling text --------
+ static bool oldBltTxt = false;
+ if (ov[1].oU)
+@@ -616,6 +617,7 @@ void CHud::Update(int carId, float time)
+ ov[1].oU->setCaption("");
+ }
+ oldBltTxt = pSet->bltProfilerTxt;
++#endif // BT_NO_PROFILE
+
+
+ // wheels slide, susp bars --------