File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -246,16 +246,22 @@ void P_InitPicAnims (void)
246
246
247
247
lastanim -> istexture = animdefs [i ].istexture ;
248
248
lastanim -> numpics = lastanim -> picnum - lastanim -> basepic + 1 ;
249
+ lastanim -> speed = LittleLong (animdefs [i ].speed );
249
250
250
251
// [crispy] skip reading SMMU swirling flats
251
252
if (lastanim -> speed < 65536 && lastanim -> numpics != 1 )
252
- {
253
+ {
253
254
if (lastanim -> numpics < 2 )
254
255
I_Error ("P_InitPicAnims: bad cycle from %s to %s" ,
255
256
animdefs [i ].startname ,
256
257
animdefs [i ].endname );
257
258
}
258
- lastanim -> speed = LittleLong (animdefs [i ].speed ); // killough 5/5/98: add LONG()
259
+
260
+ if (lastanim -> speed == 0 )
261
+ I_Error ("P_InitPicAnims: %s to %s animation cannot have speed 0" ,
262
+ animdefs [i ].startname ,
263
+ animdefs [i ].endname );
264
+
259
265
lastanim ++ ;
260
266
}
261
267
You can’t perform that action at this time.
0 commit comments