git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@62
8a3a26a2-13c4-0310-b231-
cf6edde360e5
- 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.
#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"
#define NUM_TOOLBARBUTTONS 9
#define NUM_TOOLBARBUTTONS 9
-unsigned int ToolbarButtonCount( void ) {
+std::size_t ToolbarButtonCount( void ) {
return NUM_TOOLBARBUTTONS;
}
return NUM_TOOLBARBUTTONS;
}
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];
g_BobToolzPluginModule.selfRegister();
g_BobToolzToolbarModule.selfRegister();
g_BobToolzPluginModule.selfRegister();
g_BobToolzToolbarModule.selfRegister();
-}
\ No newline at end of file
#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"
#ifdef WIN32
#include <windows.h>
#ifdef WIN32
#include <windows.h>
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;
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
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_"))
{
const scene::Path* ent = FindEntityFromTargetname(entity);
if(!ent)
{
const scene::Path* ent = FindEntityFromTargetname(entity);
if(!ent)
scene::Instance& instance = *GlobalSceneGraph().find(*ent);
VectorCopy(instance.worldAABB().origin, centre);
scene::Instance& instance = *GlobalSceneGraph().find(*ent);
VectorCopy(instance.worldAABB().origin, centre);
}
vec_t Min(vec_t a, vec_t b)
}
vec_t Min(vec_t a, vec_t b)