r140 - in trunk/code: game q3_ui ui unix
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Wed Oct 5 10:50:46 EDT 2005
Author: tma
Date: 2005-10-05 10:50:45 -0400 (Wed, 05 Oct 2005)
New Revision: 140
Removed:
trunk/code/ui/ui_util.c
Modified:
trunk/code/game/g_client.c
trunk/code/game/g_items.c
trunk/code/game/g_misc.c
trunk/code/game/g_spawn.c
trunk/code/game/g_trigger.c
trunk/code/q3_ui/ui_atoms.c
trunk/code/q3_ui/ui_ingame.c
trunk/code/q3_ui/ui_menu.c
trunk/code/q3_ui/ui_servers2.c
trunk/code/ui/ui_shared.c
trunk/code/unix/Makefile
Log:
* Fixed some vm build warnings
Modified: trunk/code/game/g_client.c
===================================================================
--- trunk/code/game/g_client.c 2005-10-05 03:13:20 UTC (rev 139)
+++ trunk/code/game/g_client.c 2005-10-05 14:50:45 UTC (rev 140)
@@ -1004,8 +1004,8 @@
trap_UnlinkEntity( ent );
}
G_InitGentity( ent );
- ent->touch = NULL;
- ent->pain = NULL;
+ ent->touch = 0;
+ ent->pain = 0;
ent->client = client;
client->pers.connected = CON_CONNECTED;
Modified: trunk/code/game/g_items.c
===================================================================
--- trunk/code/game/g_items.c 2005-10-05 03:13:20 UTC (rev 139)
+++ trunk/code/game/g_items.c 2005-10-05 14:50:45 UTC (rev 140)
@@ -542,7 +542,7 @@
// events such as ctf flags
if ( respawn <= 0 ) {
ent->nextthink = 0;
- ent->think = NULL;
+ ent->think = 0;
} else {
ent->nextthink = level.time + respawn * 1000;
ent->think = RespawnItem;
Modified: trunk/code/game/g_misc.c
===================================================================
--- trunk/code/game/g_misc.c 2005-10-05 03:13:20 UTC (rev 139)
+++ trunk/code/game/g_misc.c 2005-10-05 14:50:45 UTC (rev 140)
@@ -288,7 +288,7 @@
static void InitShooter_Finish( gentity_t *ent ) {
ent->enemy = G_PickTarget( ent->target );
- ent->think = NULL;
+ ent->think = 0;
ent->nextthink = 0;
}
Modified: trunk/code/game/g_spawn.c
===================================================================
--- trunk/code/game/g_spawn.c 2005-10-05 03:13:20 UTC (rev 139)
+++ trunk/code/game/g_spawn.c 2005-10-05 14:50:45 UTC (rev 140)
@@ -191,7 +191,7 @@
void SP_team_redobelisk( gentity_t *ent );
void SP_team_neutralobelisk( gentity_t *ent );
#endif
-void SP_item_botroam( gentity_t *ent ) {};
+void SP_item_botroam( gentity_t *ent ) { }
spawn_t spawns[] = {
// info entities don't do anything at all, but provide positional
@@ -266,7 +266,7 @@
#endif
{"item_botroam", SP_item_botroam},
- {NULL, NULL}
+ {NULL, 0}
};
/*
Modified: trunk/code/game/g_trigger.c
===================================================================
--- trunk/code/game/g_trigger.c 2005-10-05 03:13:20 UTC (rev 139)
+++ trunk/code/game/g_trigger.c 2005-10-05 14:50:45 UTC (rev 140)
@@ -67,7 +67,7 @@
} else {
// we can't just remove (self) here, because this is a touch function
// called while looping through area links...
- ent->touch = NULL;
+ ent->touch = 0;
ent->nextthink = level.time + FRAMETIME;
ent->think = G_FreeEntity;
}
Modified: trunk/code/q3_ui/ui_atoms.c
===================================================================
--- trunk/code/q3_ui/ui_atoms.c 2005-10-05 03:13:20 UTC (rev 139)
+++ trunk/code/q3_ui/ui_atoms.c 2005-10-05 14:50:45 UTC (rev 140)
@@ -821,10 +821,10 @@
UI_MainMenu();
return;
case UIMENU_NEED_CD:
- UI_ConfirmMenu( "Insert the CD", (voidfunc_f)NULL, NeedCDAction );
+ UI_ConfirmMenu( "Insert the CD", 0, NeedCDAction );
return;
case UIMENU_BAD_CD_KEY:
- UI_ConfirmMenu( "Bad CD Key", (voidfunc_f)NULL, NeedCDKeyAction );
+ UI_ConfirmMenu( "Bad CD Key", 0, NeedCDKeyAction );
return;
case UIMENU_INGAME:
/*
Modified: trunk/code/q3_ui/ui_ingame.c
===================================================================
--- trunk/code/q3_ui/ui_ingame.c 2005-10-05 03:13:20 UTC (rev 139)
+++ trunk/code/q3_ui/ui_ingame.c 2005-10-05 14:50:45 UTC (rev 140)
@@ -120,11 +120,11 @@
break;
case ID_RESTART:
- UI_ConfirmMenu( "RESTART ARENA?", (voidfunc_f)NULL, InGame_RestartAction );
+ UI_ConfirmMenu( "RESTART ARENA?", 0, InGame_RestartAction );
break;
case ID_QUIT:
- UI_ConfirmMenu( "EXIT GAME?", (voidfunc_f)NULL, InGame_QuitAction );
+ UI_ConfirmMenu( "EXIT GAME?", 0, InGame_QuitAction );
break;
case ID_SERVERINFO:
Modified: trunk/code/q3_ui/ui_menu.c
===================================================================
--- trunk/code/q3_ui/ui_menu.c 2005-10-05 03:13:20 UTC (rev 139)
+++ trunk/code/q3_ui/ui_menu.c 2005-10-05 14:50:45 UTC (rev 140)
@@ -126,7 +126,7 @@
break;
case ID_EXIT:
- UI_ConfirmMenu( "EXIT GAME?", NULL, MainMenu_ExitAction );
+ UI_ConfirmMenu( "EXIT GAME?", 0, MainMenu_ExitAction );
break;
}
}
Modified: trunk/code/q3_ui/ui_servers2.c
===================================================================
--- trunk/code/q3_ui/ui_servers2.c 2005-10-05 03:13:20 UTC (rev 139)
+++ trunk/code/q3_ui/ui_servers2.c 2005-10-05 14:50:45 UTC (rev 140)
@@ -1265,11 +1265,11 @@
case ID_PUNKBUSTER:
if (g_arenaservers.punkbuster.curvalue)
{
- UI_ConfirmMenu_Style( "Enable Punkbuster?", UI_CENTER|UI_INVERSE|UI_SMALLFONT, (voidfunc_f)NULL, Punkbuster_ConfirmEnable );
+ UI_ConfirmMenu_Style( "Enable Punkbuster?", UI_CENTER|UI_INVERSE|UI_SMALLFONT, 0, Punkbuster_ConfirmEnable );
}
else
{
- UI_ConfirmMenu_Style( "Disable Punkbuster?", UI_CENTER|UI_INVERSE|UI_SMALLFONT, (voidfunc_f)NULL, Punkbuster_ConfirmDisable );
+ UI_ConfirmMenu_Style( "Disable Punkbuster?", UI_CENTER|UI_INVERSE|UI_SMALLFONT, 0, Punkbuster_ConfirmDisable );
}
break;
}
Modified: trunk/code/ui/ui_shared.c
===================================================================
--- trunk/code/ui/ui_shared.c 2005-10-05 03:13:20 UTC (rev 139)
+++ trunk/code/ui/ui_shared.c 2005-10-05 14:50:45 UTC (rev 140)
@@ -42,7 +42,7 @@
static scrollInfo_t scrollInfo;
-static void (*captureFunc) (void *p) = NULL;
+static void (*captureFunc) (void *p) = 0;
static void *captureData = NULL;
static itemDef_t *itemCapture = NULL; // item that has the mouse captured ( if any )
@@ -2371,7 +2371,7 @@
if (itemCapture) {
Item_StopCapture(itemCapture);
itemCapture = NULL;
- captureFunc = NULL;
+ captureFunc = 0;
captureData = NULL;
} else {
// bk001206 - parentheses
@@ -5134,7 +5134,7 @@
{"hideCvar", ItemParse_hideCvar, NULL},
{"cinematic", ItemParse_cinematic, NULL},
{"doubleclick", ItemParse_doubleClick, NULL},
- {NULL, NULL, NULL}
+ {NULL, 0, NULL}
};
keywordHash_t *itemParseKeywordHash[KEYWORDHASH_SIZE];
@@ -5535,7 +5535,7 @@
{"fadeClamp", MenuParse_fadeClamp, NULL},
{"fadeCycle", MenuParse_fadeCycle, NULL},
{"fadeAmount", MenuParse_fadeAmount, NULL},
- {NULL, NULL, NULL}
+ {NULL, 0, NULL}
};
keywordHash_t *menuParseKeywordHash[KEYWORDHASH_SIZE];
Deleted: trunk/code/ui/ui_util.c
===================================================================
--- trunk/code/ui/ui_util.c 2005-10-05 03:13:20 UTC (rev 139)
+++ trunk/code/ui/ui_util.c 2005-10-05 14:50:45 UTC (rev 140)
@@ -1,29 +0,0 @@
-/*
-===========================================================================
-Copyright (C) 1999-2005 Id Software, Inc.
-
-This file is part of Quake III Arena source code.
-
-Quake III Arena source code is free software; you can redistribute it
-and/or modify it under the terms of the GNU General Public License as
-published by the Free Software Foundation; either version 2 of the License,
-or (at your option) any later version.
-
-Quake III Arena source code is distributed in the hope that it will be
-useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with Foobar; if not, write to the Free Software
-Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-===========================================================================
-*/
-// ui_util.c
-//
-// origin: rad
-// new ui support stuff
-//
-// memory, string alloc
-
-
Modified: trunk/code/unix/Makefile
===================================================================
--- trunk/code/unix/Makefile 2005-10-05 03:13:20 UTC (rev 139)
+++ trunk/code/unix/Makefile 2005-10-05 14:50:45 UTC (rev 140)
@@ -1325,7 +1325,6 @@
$(B)/missionpack/ui/ui_atoms.o \
$(B)/missionpack/ui/ui_gameinfo.o \
$(B)/missionpack/ui/ui_players.o \
- $(B)/missionpack/ui/ui_util.o \
$(B)/missionpack/ui/ui_shared.o \
\
$(B)/missionpack/game/bg_misc.o \
More information about the quake3-commits
mailing list