From 9e0bb1f76ae3b9ac5c8e9ef4c1e30edc7a1f124d Mon Sep 17 00:00:00 2001 From: Rob Pearce Date: Sat, 22 Nov 2008 11:02:19 +0000 Subject: [PATCH] Level graphical glitches fixed --- data/levels/level107.dat | 3 --- data/levels/level13.dat | 1 - shared.c | 7 +++++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/data/levels/level107.dat b/data/levels/level107.dat index f081433..8abcee5 100644 --- a/data/levels/level107.dat +++ b/data/levels/level107.dat @@ -75,6 +75,3 @@ exitdir 1 4,41,4,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,70,4, 4,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,4, layer2 -8,0,1 -9,0,1 -10,0,1 diff --git a/data/levels/level13.dat b/data/levels/level13.dat index 19a9b77..c7f2030 100644 --- a/data/levels/level13.dat +++ b/data/levels/level13.dat @@ -9,7 +9,6 @@ monsters 134 11 25 23 28 6 6 11 12 -6 28 24 6 29 18 6 6 11 18 9 5 diff --git a/shared.c b/shared.c index e0805de..34bd515 100644 --- a/shared.c +++ b/shared.c @@ -1378,8 +1378,11 @@ int loadimagesets(void) { loadspriteimage(P_CHOCOLATE,F_WALK1, "sprites/chocolate.png"); imageset[P_CHOCOLATE].numimages = 1; - // don't load image for P_RANDOM - imageset[P_RANDOM].numimages = 0; + // we never use it, but load an image for P_RANDOM + // just in case... otehrwise we'll get crashes due to + // NULL images. + loadspriteimage(P_RANDOM,F_WALK1, "sprites/random.png"); + imageset[P_RANDOM].numimages = 1; loadspriteimage(P_NUMNETS,F_WALK1, "sprites/numnets.png"); imageset[P_NUMNETS].numimages = 1;