]> de.git.xonotic.org Git - xonotic/netradiant.git/commitdiff
integrated bobtoolz patch from LordHavoc
authorspog <spog>
Sat, 13 May 2006 10:36:50 +0000 (10:36 +0000)
committerspog <spog>
Sat, 13 May 2006 10:36:50 +0000 (10:36 +0000)
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@62 8a3a26a2-13c4-0310-b231-cf6edde360e5

CHANGES
contrib/bobtoolz/DTreePlanter.h
contrib/bobtoolz/bobToolz-GTK.cpp
contrib/bobtoolz/funchandlers-GTK.cpp
contrib/bobtoolz/misc.cpp

diff --git a/CHANGES b/CHANGES
index 333cf5e98f570ce50df2fb1425bbf35727dc0b36..a59f9c80833c69953f9c0107b9bd879d9cf5961c 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -7,6 +7,7 @@ LordHavoc
 - Removed static-linked libstdc++ hack for non-final builds.
 - Removed gcc explicit linking hack for non-final builds.
 - Added workaround for gcc static-member-pointer-as-template-argument bug.
 - Removed static-linked libstdc++ hack for non-final builds.
 - Removed gcc explicit linking hack for non-final builds.
 - Added workaround for gcc static-member-pointer-as-template-argument bug.
+- Fixed bobtoolz linux compile errors.
 
 30/04/2006
 SPoG
 
 30/04/2006
 SPoG
index 7fceba3aa665d19c1f71e2cfc6c896ea187ef6ee..104216608a1739c249ecba6091b626311ac7a68a 100644 (file)
@@ -25,7 +25,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 #include "string/string.h"
 
 #include "DEntity.h"
 #include "string/string.h"
 
 #include "DEntity.h"
-#include "scriptparser.h"
+#include "ScriptParser.h"
 #include "mathlib.h"
 #include "misc.h"
 
 #include "mathlib.h"
 #include "misc.h"
 
index c32a027ba1697226267c8e9ea34f311e2b9251fc..26578e93802b08b4a0d1308fcf253ce378c5f898 100644 (file)
@@ -127,7 +127,7 @@ const char* QERPlug_GetCommandTitleList()
 
 #define NUM_TOOLBARBUTTONS 9
 
 
 #define NUM_TOOLBARBUTTONS 9
 
-unsigned int ToolbarButtonCount( void ) {
+std::size_t ToolbarButtonCount( void ) {
        return NUM_TOOLBARBUTTONS;
 }
 
        return NUM_TOOLBARBUTTONS;
 }
 
@@ -209,7 +209,7 @@ public:
 
 CBobtoolzToolbarButton g_bobtoolzToolbarButtons[NUM_TOOLBARBUTTONS];
 
 
 CBobtoolzToolbarButton g_bobtoolzToolbarButtons[NUM_TOOLBARBUTTONS];
 
-const IToolbarButton* GetToolbarButton(unsigned int index)
+const IToolbarButton* GetToolbarButton(std::size_t index)
 {
   g_bobtoolzToolbarButtons[index].mIndex = index;
   return &g_bobtoolzToolbarButtons[index];
 {
   g_bobtoolzToolbarButtons[index].mIndex = index;
   return &g_bobtoolzToolbarButtons[index];
@@ -325,4 +325,4 @@ extern "C" void RADIANT_DLLEXPORT Radiant_RegisterModules(ModuleServer& server)
 
   g_BobToolzPluginModule.selfRegister();
   g_BobToolzToolbarModule.selfRegister();
 
   g_BobToolzPluginModule.selfRegister();
   g_BobToolzToolbarModule.selfRegister();
-}
\ No newline at end of file
+}
index 577bdaf0fd397aa8e66bbe1d425f9c43e48a3eb6..5d1f16a910c749b058816a74152ed53b8861ed69 100644 (file)
@@ -40,7 +40,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 #include "DTrainDrawer.h"
 
 #include "misc.h"
 #include "DTrainDrawer.h"
 
 #include "misc.h"
-#include "scriptparser.h"
+#include "ScriptParser.h"
 #include "DTreePlanter.h"
 
 #include "shapes.h"
 #include "DTreePlanter.h"
 
 #include "shapes.h"
index cce40e14f44c4057e6dd30bcb8a4d4da1d4cdc6b..027e123d1eaa12afeb80093625bd205b7e95b941 100644 (file)
@@ -217,8 +217,6 @@ bool Q_Exec( const char *pCmd, bool bCreateConsole )
 }
 #endif
 
 }
 #endif
 
-#include <windows.h>
-
 #ifdef WIN32
 
 #include <windows.h>
 #ifdef WIN32
 
 #include <windows.h>
@@ -239,7 +237,7 @@ bool Q_Exec( const char *pCmd, bool bCreateConsole )
 
        for(; *pCmd == ' '; pCmd++);
 
 
        for(; *pCmd == ' '; pCmd++);
 
-       if(!CreateProcess(NULL, (char *)pCmd, NULL, NULL, FALSE, dwCreationFlags, NULL, NULL, &si, &pi))
+       if(!CreateProcess(NULL, (char *)pCmd, NULL, NULL, false, dwCreationFlags, NULL, NULL, &si, &pi))
                return false;
 
   return true;
                return false;
 
   return true;
@@ -262,7 +260,7 @@ void StartBSP()
        char command[1024];
        sprintf(command, "%s -nowater -fulldetail %s", exename, mapname);
 
        char command[1024];
        sprintf(command, "%s -nowater -fulldetail %s", exename, mapname);
 
-       Q_Exec( command, TRUE );
+       Q_Exec( command, true );
 }
 
 class EntityWriteMiniPrt
 }
 
 class EntityWriteMiniPrt
@@ -281,8 +279,8 @@ public:
 
                if(!strcmp(classname, "worldspawn"))
                {
 
                if(!strcmp(classname, "worldspawn"))
                {
-                       world.LoadFromEntity(instance.path().top(), FALSE);
-                       world.RemoveNonCheckBrushes(exclusionList, TRUE);
+                       world.LoadFromEntity(instance.path().top(), false);
+                       world.RemoveNonCheckBrushes(exclusionList, true);
                        world.SaveToFile(pFile);
                }
                else if(strstr(classname, "info_"))
                        world.SaveToFile(pFile);
                }
                else if(strstr(classname, "info_"))
@@ -379,12 +377,12 @@ bool GetEntityCentre(const char* entity, vec3_t centre)
 {
   const scene::Path* ent = FindEntityFromTargetname(entity);
        if(!ent)
 {
   const scene::Path* ent = FindEntityFromTargetname(entity);
        if(!ent)
-               return FALSE;
+               return false;
 
   scene::Instance& instance = *GlobalSceneGraph().find(*ent);
   VectorCopy(instance.worldAABB().origin, centre);
 
 
   scene::Instance& instance = *GlobalSceneGraph().find(*ent);
   VectorCopy(instance.worldAABB().origin, centre);
 
-       return TRUE;
+       return true;
 }
 
 vec_t Min(vec_t a, vec_t b)
 }
 
 vec_t Min(vec_t a, vec_t b)