rnd-20051215-1-src
[rocksndiamonds.git] / src / libgame / toons.c
index fd2bb8e5cd3acdd5f890abf17b9aeae48a9f12a5..fec3907304fe4dd5a0e687d34b1585bdc3ca44c4 100644 (file)
@@ -88,7 +88,7 @@ static int get_toon_direction(char *direction_string_raw)
                   strcmp(direction_string, "right") == 0 ? MV_RIGHT :
                   strcmp(direction_string, "up")    == 0 ? MV_UP :
                   strcmp(direction_string, "down")  == 0 ? MV_DOWN :
-                  MV_NO_MOVING);
+                  MV_NONE);
 
   free(direction_string);
 
@@ -306,7 +306,7 @@ void HandleAnimation(int mode)
   static int toon_nr = 0;
   int draw_mode;
 
-  if (!setup.toons)
+  if (!setup.toons || screen_info.num_toons == 0)
     return;
 
   /* this may happen after reloading graphics and redefining "num_toons" */