projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cleanup of some common and specific game engine function calls
[rocksndiamonds.git]
/
src
/
game.c
diff --git
a/src/game.c
b/src/game.c
index cad2e92e227f2601b9973dadeb66bac58a3f3f28..49acec5bed46a4c70b979dd4fc3f5d795284c645 100644
(file)
--- a/
src/game.c
+++ b/
src/game.c
@@
-11197,7
+11197,11
@@
void GameActions()
GameActions_RND_Main();
}
GameActions_RND_Main();
}
- redraw_mask |= REDRAW_FIELD;
+ BlitScreenToBitmap(backbuffer);
+
+ CheckLevelTime();
+
+ AdvanceFrameAndPlayerCounters(-1); /* advance counters for all players */
}
void GameActions_EM_Main()
}
void GameActions_EM_Main()
@@
-11210,10
+11214,6
@@
void GameActions_EM_Main()
effective_action[i] = stored_player[i].effective_action;
GameActions_EM(effective_action, warp_mode);
effective_action[i] = stored_player[i].effective_action;
GameActions_EM(effective_action, warp_mode);
-
- CheckLevelTime();
-
- AdvanceFrameAndPlayerCounters(-1); /* advance counters for all players */
}
void GameActions_SP_Main()
}
void GameActions_SP_Main()
@@
-11226,17
+11226,11
@@
void GameActions_SP_Main()
effective_action[i] = stored_player[i].effective_action;
GameActions_SP(effective_action, warp_mode);
effective_action[i] = stored_player[i].effective_action;
GameActions_SP(effective_action, warp_mode);
-
- CheckLevelTime();
-
- AdvanceFrameAndPlayerCounters(-1); /* advance counters for all players */
}
void GameActions_RND_Main()
{
GameActions_RND();
}
void GameActions_RND_Main()
{
GameActions_RND();
-
- BlitScreenToBitmap_RND(backbuffer);
}
void GameActions_RND()
}
void GameActions_RND()
@@
-11738,8
+11732,6
@@
void GameActions_RND()
}
#endif
}
#endif
- CheckLevelTime();
-
DrawAllPlayers();
PlayAllPlayersSound();
DrawAllPlayers();
PlayAllPlayersSound();
@@
-11762,8
+11754,6
@@
void GameActions_RND()
redraw_mask |= REDRAW_FPS;
}
redraw_mask |= REDRAW_FPS;
}
- AdvanceFrameAndPlayerCounters(-1); /* advance counters for all players */
-
if (local_player->show_envelope != 0 && local_player->MovPos == 0)
{
ShowEnvelope(local_player->show_envelope - EL_ENVELOPE_1);
if (local_player->show_envelope != 0 && local_player->MovPos == 0)
{
ShowEnvelope(local_player->show_envelope - EL_ENVELOPE_1);