Fix declaration-after-statement warning in game.c after r3270.

git-svn-id: https://svn.eduke32.com/eduke32@3277 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2012-12-13 02:35:06 +00:00
parent 2f8dbd94c3
commit 70aecb2e75

View file

@ -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 p;
int32_t i; int32_t i;
spritetype *s;
spritetype spr_temp;
// NetAlloc // NetAlloc
if (Net_IsRelevantStat(s_ss)) 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); i = insertsprite(whatsect,s_ss);
} }
spritetype *s = &sprite[i]; s = &sprite[i];
spritetype spr_temp;
memset(&spr_temp, 0, sizeof(spritetype)); memset(&spr_temp, 0, sizeof(spritetype));
spr_temp.x = s_x; spr_temp.x = s_x;