Merge pull request #31 from xoddark/Werror_conversion-null

Fix conversion-null warning
This commit is contained in:
Timothee "TTimo" Besset
2011-12-29 09:43:34 -08:00
6 changed files with 8 additions and 8 deletions

View File

@@ -458,7 +458,7 @@ idActor::idActor( void ) {
waitState = "";
blink_anim = NULL;
blink_anim = 0;
blink_time = 0;
blink_min = 0;
blink_max = 0;

View File

@@ -276,7 +276,7 @@ void idGrabber::StartDrag( idEntity *grabEnt, int id ) {
aiEnt->StartRagdoll();
}
} else if ( grabEnt->IsType( idMoveableItem::Type ) ) {
grabEnt->PostEventMS( &EV_Touch, 250, thePlayer, NULL );
grabEnt->PostEventMS( &EV_Touch, 250, thePlayer, 0 );
}
// Get the current physics object to manipulate

View File

@@ -294,7 +294,7 @@ void idItem::Spawn( void ) {
if ( !ent ) {
gameLocal.Error( "Item couldn't find owner '%s'", giveTo.c_str() );
}
PostEventMS( &EV_Touch, 0, ent, NULL );
PostEventMS( &EV_Touch, 0, ent, 0 );
}
#ifdef CTF

View File

@@ -1303,10 +1303,10 @@ void idTrigger_Flag::Event_Touch( idEntity *other, trace_t *trace ) {
flag->PostEventMS( eventFlag, 0 );
break;
case 1 :
flag->PostEventMS( eventFlag, 0, NULL );
flag->PostEventMS( eventFlag, 0, 0 );
break;
case 2 :
flag->PostEventMS( eventFlag, 0, NULL, NULL );
flag->PostEventMS( eventFlag, 0, 0, 0 );
break;
}

View File

@@ -2489,7 +2489,7 @@ void idAI::Event_ThrowMoveable( void ) {
}
if ( moveable ) {
moveable->Unbind();
moveable->PostEventMS( &EV_SetOwner, 200, NULL );
moveable->PostEventMS( &EV_SetOwner, 200, 0 );
}
}
@@ -2510,7 +2510,7 @@ void idAI::Event_ThrowAF( void ) {
}
if ( af ) {
af->Unbind();
af->PostEventMS( &EV_SetOwner, 200, NULL );
af->PostEventMS( &EV_SetOwner, 200, 0 );
}
}