From 0f585011fb98190f58a6afbf8bdb289171e714fe Mon Sep 17 00:00:00 2001 From: jacksonmj Date: Tue, 26 Jul 2011 13:34:00 +0100 Subject: [PATCH] Fix for SPWN sometimes failing to create stickman Example: place stickman, then load a save containing SPWN but no stickman. Stickman does not get created. --- src/main.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main.c b/src/main.c index d96f8d9bc..e1d2d7e60 100644 --- a/src/main.c +++ b/src/main.c @@ -1138,6 +1138,8 @@ void clear_sim(void) memset(gol2, 0, sizeof(gol2)); memset(portalp, 0, sizeof(portalp)); ISSPAWN1 = ISSPAWN2 = 0; + player[27] = 0; + player2[27] = 0; memset(pers_bg, 0, (XRES+BARSIZE)*YRES*PIXELSIZE); memset(fire_bg, 0, XRES*YRES*PIXELSIZE); memset(fire_r, 0, sizeof(fire_r)); @@ -2999,11 +3001,6 @@ int main(int argc, char *argv[]) svf_description[0] = 0; gravityMode = 0; airMode = 0; - - player2[27] = 0; - player[27] = 0; - ISSPAWN1 = 0; - ISSPAWN2 = 0; } if (x>=(XRES+BARSIZE-(510-385)) && x<=(XRES+BARSIZE-(510-476))) {