* Fixed some vm build warnings
This commit is contained in:
parent
79ba2d974d
commit
9d41e17e1f
12 changed files with 18 additions and 48 deletions
|
@ -1004,8 +1004,8 @@ void ClientBegin( int clientNum ) {
|
|||
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;
|
||||
|
|
|
@ -542,7 +542,7 @@ void Touch_Item (gentity_t *ent, gentity_t *other, trace_t *trace) {
|
|||
// 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;
|
||||
|
|
|
@ -288,7 +288,7 @@ void Use_Shooter( gentity_t *ent, gentity_t *other, gentity_t *activator ) {
|
|||
|
||||
static void InitShooter_Finish( gentity_t *ent ) {
|
||||
ent->enemy = G_PickTarget( ent->target );
|
||||
ent->think = NULL;
|
||||
ent->think = 0;
|
||||
ent->nextthink = 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -191,7 +191,7 @@ void SP_team_blueobelisk( gentity_t *ent );
|
|||
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 @@ spawn_t spawns[] = {
|
|||
#endif
|
||||
{"item_botroam", SP_item_botroam},
|
||||
|
||||
{NULL, NULL}
|
||||
{NULL, 0}
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
@ -67,7 +67,7 @@ void multi_trigger( gentity_t *ent, gentity_t *activator ) {
|
|||
} 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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue