projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added functions to get current player position for all game engines
[rocksndiamonds.git]
/
src
/
game_em
/
input.c
diff --git
a/src/game_em/input.c
b/src/game_em/input.c
index 73d1c858362281896c2c42e496e791112f62cc18..4028f19a553f692e9dc7a3541358f0ab24d27918 100644
(file)
--- a/
src/game_em/input.c
+++ b/
src/game_em/input.c
@@
-63,7
+63,8
@@
void InitGameEngine_EM()
prepare_em_level();
game_initscreen();
prepare_em_level();
game_initscreen();
- game_animscreen();
+
+ RedrawPlayfield_EM(FALSE);
}
void UpdateGameDoorValues_EM()
}
void UpdateGameDoorValues_EM()
@@
-82,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)
{
@@
-108,9
+109,7
@@
void GameActions_EM(byte action[MAX_PLAYERS], boolean warp_mode)
CheckSingleStepMode_EM(action, frame, game_em.any_player_moving,
game_em.any_player_snapping, any_player_dropping);
CheckSingleStepMode_EM(action, frame, game_em.any_player_moving,
game_em.any_player_snapping, any_player_dropping);
- game_animscreen();
-
- blitscreen();
+ RedrawPlayfield_EM(FALSE);
}
/* read input device for players */
}
/* read input device for players */