#define NUM_TOOLBARBUTTONS 9
-unsigned int ToolbarButtonCount( void ) {
+std::size_t ToolbarButtonCount( void ) {
return 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_BobToolzPluginModule.selfRegister();
g_BobToolzToolbarModule.selfRegister();
-}
\ No newline at end of file
+}
}
#endif
-#include <windows.h>
-
#ifdef WIN32
#include <windows.h>
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;
char command[1024];
sprintf(command, "%s -nowater -fulldetail %s", exename, mapname);
- Q_Exec( command, TRUE );
+ Q_Exec( command, true );
}
class EntityWriteMiniPrt
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_"))
{
const scene::Path* ent = FindEntityFromTargetname(entity);
if(!ent)
- return FALSE;
+ return false;
scene::Instance& instance = *GlobalSceneGraph().find(*ent);
VectorCopy(instance.worldAABB().origin, centre);
- return TRUE;
+ return true;
}
vec_t Min(vec_t a, vec_t b)