char* TranslateString (char *buf)
{
static char buf2[32768];
- int i, l;
- char *out;
- l = strlen(buf);
- out = buf2;
- for (i=0 ; i<l ; i++)
+ std::size_t l = strlen(buf);
+ char* out = buf2;
+ for (int i=0 ; i<l ; i++)
{
if (buf[i] == '\n')
{
}
#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)