From 70aecb2e75d08a333a84952e70a55629c09cb73d Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Thu, 13 Dec 2012 02:35:06 +0000 Subject: [PATCH] Fix declaration-after-statement warning in game.c after r3270. git-svn-id: https://svn.eduke32.com/eduke32@3277 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/game.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/polymer/eduke32/source/game.c b/polymer/eduke32/source/game.c index 52b224667..af4f8522f 100644 --- a/polymer/eduke32/source/game.c +++ b/polymer/eduke32/source/game.c @@ -3950,6 +3950,8 @@ int32_t A_InsertSprite(int32_t whatsect,int32_t s_x,int32_t s_y,int32_t s_z,int3 { int32_t p; int32_t i; + spritetype *s; + spritetype spr_temp; // NetAlloc if (Net_IsRelevantStat(s_ss)) @@ -3960,9 +3962,8 @@ int32_t A_InsertSprite(int32_t whatsect,int32_t s_x,int32_t s_y,int32_t s_z,int3 { i = insertsprite(whatsect,s_ss); } - - spritetype *s = &sprite[i]; - spritetype spr_temp; + + s = &sprite[i]; memset(&spr_temp, 0, sizeof(spritetype)); spr_temp.x = s_x;