changed order of some structures in EM engine
[rocksndiamonds.git] / src / game_em / game.c
index 38016ef7b16fe1c15681bec3dbba179fb3fbbe71..7842a89c5dd7b0b0ad69f897386c4caa5dfcfed0 100644 (file)
@@ -83,23 +83,14 @@ void GameActions_EM(byte action[MAX_PLAYERS], boolean warp_mode)
 
   game_em.random = game_em.random * 129 + 1;
 
-  frame = (frame - 1) & 7;
+  frame = (frame + 1) % 8;
 
   for (i = 0; i < MAX_PLAYERS; i++)
     readjoy(action[i], &ply[i]);
 
   UpdateEngineValues(screen_x / TILEX, screen_y / TILEY, ply[0].x, ply[0].y);
 
-  if (frame == 7)
-  {
-    logic_players();
-    logic_objects();
-  }
-
-  if (frame == 6)
-  {
-    logic_globals();
-  }
+  logic();
 
   for (i = 0; i < MAX_PLAYERS; i++)
     if (ply[i].joy_drop &&