added editor door 1 animation if viewport is unchanged and contains toolbox
[rocksndiamonds.git] / src / tools.c
index 2838908d99e93954787d83d96547b9df58cb95e2..55c757afa9c215d63c56ffc20b64ed02518bc6d3 100644 (file)
@@ -4770,7 +4770,7 @@ unsigned int MoveDoor(unsigned int door_state)
     door_state &= ~DOOR_CLOSE_ALL;
   }
 
-  if (game_status == GAME_MODE_EDITOR)
+  if (game_status == GAME_MODE_EDITOR && !(door_state & DOOR_FORCE_ANIM))
     door_state |= DOOR_NO_DELAY;
 
   if (door_state & DOOR_ACTION)