From fc47c4eb97beed6479a1a0513f95055b71203f32 Mon Sep 17 00:00:00 2001 From: Walter Julius Hennecke Date: Fri, 24 May 2013 00:04:19 +0200 Subject: [PATCH] fixed more warnings --- code/game/g_local.h | 2 +- code/game/g_lua.c | 2 +- code/game/g_main.c | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/code/game/g_local.h b/code/game/g_local.h index cdb9dcd..1d386b1 100644 --- a/code/game/g_local.h +++ b/code/game/g_local.h @@ -2458,7 +2458,7 @@ int BotAIStartFrame( int time ); * \param radomseed a random seed * \param restart is this a map restart? */ -void LuaHook_G_InitGame(int leveltime, int randomseed, int restart); +void LuaHook_G_InitGame(int leveltime, unsigned int randomseed, int restart); /** * Lua hook for Shutdown event. diff --git a/code/game/g_lua.c b/code/game/g_lua.c index e63e6e5..82ce1ec 100644 --- a/code/game/g_lua.c +++ b/code/game/g_lua.c @@ -456,7 +456,7 @@ lvm_t *G_LuaGetVM(lua_State * L) return NULL; } -void LuaHook_G_InitGame(int levelTime, int randomSeed, int restart) +void LuaHook_G_InitGame(int levelTime, unsigned int randomSeed, int restart) { int i; lvm_t *vm; diff --git a/code/game/g_main.c b/code/game/g_main.c index c71ffb6..71814ec 100644 --- a/code/game/g_main.c +++ b/code/game/g_main.c @@ -473,7 +473,7 @@ static cvarTable_t gameCvarTable[] = { static int gameCvarTableSize = (int)(sizeof( gameCvarTable ) / sizeof( gameCvarTable[0] )); -static void G_InitGame( int levelTime, int randomSeed, int restart ); +static void G_InitGame( int levelTime, unsigned int randomSeed, int restart ); static void G_RunFrame( int levelTime ); void G_ShutdownGame( int restart ); static void CheckExitRules( void ); @@ -1658,12 +1658,12 @@ static void Dev_ShowTriggers(gentity_t *ent) { for(i = 0; i < MAX_GENTITIES; i++) { if((tar = &g_entities[i]) == NULL) continue; - if(!Q_stricmpn(tar->classname, "trigger_", 8)) { - if(!Q_stricmp(tar->classname, "trigger_always")) continue; - if(tar->r.svFlags & SVF_NOCLIENT) + if(Q_stricmpn(tar->classname, "trigger_", 8) == 0) { + if(Q_stricmp(tar->classname, "trigger_always") == 0) continue; + if(tar->r.svFlags & SVF_NOCLIENT != 0) tar->r.svFlags ^= SVF_NOCLIENT; trap_LinkEntity(ent); - if(!Q_stricmpn(tar->classname, "trigger_push", 13)) + if(Q_stricmpn(tar->classname, "trigger_push", 13) == 0) G_AddEvent(tar, EV_TRIGGER_SHOW, 1); else G_AddEvent(tar, EV_TRIGGER_SHOW, 0);