summaryrefslogtreecommitdiff
path: root/src/game/g_buildable.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2013-01-12 23:55:21 +0000
committerTim Angus <tim@ngus.net>2013-01-12 23:55:21 +0000
commit0f43dc6df58569ceb32475c4a4009ea6de437923 (patch)
treedc2f7b0e108658f1591409ffed95b8e340f8cc12 /src/game/g_buildable.c
parent16b581e90f1df605141d157edad1a75b4594f479 (diff)
Fix a bunch of warnings
Diffstat (limited to 'src/game/g_buildable.c')
-rw-r--r--src/game/g_buildable.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c
index f1bb1c12..2fbd92e1 100644
--- a/src/game/g_buildable.c
+++ b/src/game/g_buildable.c
@@ -3020,7 +3020,7 @@ void G_FreeMarkedBuildables( gentity_t *deconner, char *readable, int rsize,
removalCounts[ bNum ]++;
if( nums )
- Q_strcat( nums, nsize, va( " %d", ent - g_entities ) );
+ Q_strcat( nums, nsize, va( " %d", (int)( ent - g_entities ) ) );
G_FreeEntity( ent );
}
@@ -3713,8 +3713,8 @@ static gentity_t *G_Build( gentity_t *builder, buildable_t buildable,
readable ) );
G_LogPrintf( "Construct: %d %d %s%s: %s" S_COLOR_WHITE " is building "
"%s%s%s\n",
- builder - g_entities,
- built - g_entities,
+ (int)( builder - g_entities ),
+ (int)( built - g_entities ),
BG_Buildable( built->s.modelindex )->name,
buildnums,
builder->client->pers.netname,
@@ -4279,7 +4279,7 @@ void G_BuildLogRevertThink( gentity_t *ent )
G_KillBox( built );
G_LogPrintf( "revert: restore %d %s\n",
- built - g_entities, BG_Buildable( built->s.modelindex )->name );
+ (int)( built - g_entities ), BG_Buildable( built->s.modelindex )->name );
G_FreeEntity( ent );
}
@@ -4313,7 +4313,7 @@ void G_BuildLogRevert( int id )
{
if( ent->s.eType == ET_BUILDABLE )
G_LogPrintf( "revert: remove %d %s\n",
- ent - g_entities, BG_Buildable( ent->s.modelindex )->name );
+ (int)( ent - g_entities ), BG_Buildable( ent->s.modelindex )->name );
G_FreeEntity( ent );
break;
}