added functions to get current player position for all game engines
[rocksndiamonds.git] / src / game_em / input.c
index 470975188b35f997624eb5f18519e240a5b45c7a..4028f19a553f692e9dc7a3541358f0ab24d27918 100644 (file)
@@ -83,7 +83,7 @@ void GameActions_EM(byte action[MAX_PLAYERS], boolean warp_mode)
   for (i = 0; i < MAX_PLAYERS; i++)
     readjoy(action[i], &ply[i]);
 
   for (i = 0; i < MAX_PLAYERS; i++)
     readjoy(action[i], &ply[i]);
 
-  UpdateEngineValues(screen_x / TILEX, screen_y / TILEY);
+  UpdateEngineValues(screen_x / TILEX, screen_y / TILEY, ply[0].x, ply[0].y);
 
   if (frame == 7)
   {
 
   if (frame == 7)
   {
@@ -110,9 +110,6 @@ void GameActions_EM(byte action[MAX_PLAYERS], boolean warp_mode)
                         game_em.any_player_snapping, any_player_dropping);
 
   RedrawPlayfield_EM(FALSE);
                         game_em.any_player_snapping, any_player_dropping);
 
   RedrawPlayfield_EM(FALSE);
-
-  BlitScreenToBitmap_EM(backbuffer);
-  BackToFront_EM();
 }
 
 /* read input device for players */
 }
 
 /* read input device for players */