rnd-20030312-1-src
[rocksndiamonds.git] / src / tools.c
index 979eead935e254fe9a62febb76a90bb2a6290194..7a4f101441a034297fd0ea207fbe1fdeda18fb70 100644 (file)
@@ -2056,8 +2056,8 @@ unsigned int MoveDoor(unsigned int door_state)
   static int door1 = DOOR_OPEN_1;
   static int door2 = DOOR_CLOSE_2;
   static unsigned long door_delay = 0;
-  int x, start, stepsize = 2;
-  unsigned long door_delay_value = stepsize * 5;
+  int x, start, stepsize = global.door_step_offset;
+  unsigned long door_delay_value = global.door_step_delay;
 
   if (door_state == DOOR_GET_STATE)
     return(door1 | door2);