From 7fa9827a9446571dcadb5990325547c0847ef1e5 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/renderer/tr_surface.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/code/cgame/cg_view.cpp b/code/cgame/cg_view.cpp index 398f6ff..bfefeb9 100644 --- a/code/cgame/cg_view.cpp +++ b/code/cgame/cg_view.cpp @@ -1401,7 +1401,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 356108d..420faf2 100644 --- a/code/game/g_cmds.cpp +++ b/code/game/g_cmds.cpp @@ -600,7 +600,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/renderer/tr_surface.cpp b/code/renderer/tr_surface.cpp index 0af87eb..4bcdbef 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 //----------------------------------------------------------------------------