From fa77ccb704068c9a63ebcb431db480fb636d9d56 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Tue, 23 Apr 2013 10:29:55 +1000 Subject: [PATCH] avoid implicit int types --- code/cgame/cg_view.cpp | 2 +- code/game/g_cmds.cpp | 2 +- code/qcommon/common.cpp | 2 +- code/renderer/tr_surface.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/code/cgame/cg_view.cpp b/code/cgame/cg_view.cpp index 3b1522f..b0dea2f 100644 --- a/code/cgame/cg_view.cpp +++ b/code/cgame/cg_view.cpp @@ -1390,7 +1390,7 @@ static qboolean CG_CalcFov( void ) { } else {//still zooming - static zoomSoundTime = 0; + static int zoomSoundTime = 0; if ( zoomSoundTime < cg.time ) { diff --git a/code/game/g_cmds.cpp b/code/game/g_cmds.cpp index dd9e670..9ecfc29 100644 --- a/code/game/g_cmds.cpp +++ b/code/game/g_cmds.cpp @@ -603,7 +603,7 @@ Cmd_Where_f */ void Cmd_Where_f( gentity_t *ent ) { const char *s = gi.argv(1); - const len = strlen(s); + const int len = strlen(s); gentity_t *check; if ( gi.argc () < 2 ) { diff --git a/code/qcommon/common.cpp b/code/qcommon/common.cpp index 5d22914..95b41e3 100644 --- a/code/qcommon/common.cpp +++ b/code/qcommon/common.cpp @@ -1569,7 +1569,7 @@ Com_PushEvent */ void Com_PushEvent( sysEvent_t *event ) { sysEvent_t *ev; - static printedWarning; + static int printedWarning; ev = &com_pushedEvents[ com_pushedEventsHead & (MAX_PUSHED_EVENTS-1) ]; diff --git a/code/renderer/tr_surface.cpp b/code/renderer/tr_surface.cpp index f18a64d..ca681cb 100644 --- a/code/renderer/tr_surface.cpp +++ b/code/renderer/tr_surface.cpp @@ -639,7 +639,7 @@ static void RB_SurfaceCylinder( void ) } static vec3_t sh1, sh2; -static f_count; +static int f_count; // Up front, we create a random "shape", then apply that to each line segment...and then again to each of those segments...kind of like a fractal //----------------------------------------------------------------------------