projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20001127-1-src
[rocksndiamonds.git]
/
src
/
game.c
diff --git
a/src/game.c
b/src/game.c
index 63bf4b001004a842bb9dde0c7faa7596672ec6f8..708021370a7ad3070709730611f4f61edb6225fb 100644
(file)
--- a/
src/game.c
+++ b/
src/game.c
@@
-505,7
+505,7
@@
void InitGame()
network_player_action_received = FALSE;
network_player_action_received = FALSE;
-#if
!defined(MSDOS) && !defined(WIN32
)
+#if
defined(PLATFORM_UNIX
)
/* initial null action */
if (network_playing)
SendToServer_MovePlayer(MV_NO_MOVING);
/* initial null action */
if (network_playing)
SendToServer_MovePlayer(MV_NO_MOVING);
@@
-4243,7
+4243,7
@@
void GameActions()
#endif
*/
#endif
*/
-#if
!defined(MSDOS) && !defined(WIN32
)
+#if
defined(PLATFORM_UNIX
)
/* last chance to get network player actions without main loop delay */
HandleNetworking();
#endif
/* last chance to get network player actions without main loop delay */
HandleNetworking();
#endif
@@
-4280,7
+4280,7
@@
void GameActions()
stored_player[i].effective_action = stored_player[i].action;
}
stored_player[i].effective_action = stored_player[i].action;
}
-#if
!defined(MSDOS) && !defined(WIN32
)
+#if
defined(PLATFORM_UNIX
)
if (network_playing)
SendToServer_MovePlayer(summarized_player_action);
#endif
if (network_playing)
SendToServer_MovePlayer(summarized_player_action);
#endif
@@
-5950,7
+5950,7
@@
void PlaySoundLevel(int x, int y, int sound_nr)
volume = PSND_MAX_VOLUME;
volume = PSND_MAX_VOLUME;
-#if
ndef MSDOS
+#if
!defined(PLATFORM_MSDOS)
stereo = (sx - SCR_FIELDX/2) * 12;
#else
stereo = PSND_MIDDLE + (2 * sx - (SCR_FIELDX - 1)) * 5;
stereo = (sx - SCR_FIELDX/2) * 12;
#else
stereo = PSND_MIDDLE + (2 * sx - (SCR_FIELDX - 1)) * 5;
@@
-6184,7
+6184,7
@@
static void HandleGameButtons(struct GadgetInfo *gi)
Request("Do you really want to quit the game ?",
REQ_ASK | REQ_STAY_CLOSED))
{
Request("Do you really want to quit the game ?",
REQ_ASK | REQ_STAY_CLOSED))
{
-#if
!defined(MSDOS) && !defined(WIN32
)
+#if
defined(PLATFORM_UNIX
)
if (options.network)
SendToServer_StopPlaying();
else
if (options.network)
SendToServer_StopPlaying();
else
@@
-6201,7
+6201,7
@@
static void HandleGameButtons(struct GadgetInfo *gi)
case GAME_CTRL_ID_PAUSE:
if (options.network)
{
case GAME_CTRL_ID_PAUSE:
if (options.network)
{
-#if
!defined(MSDOS) && !defined(WIN32
)
+#if
defined(PLATFORM_UNIX
)
if (tape.pausing)
SendToServer_ContinuePlaying();
else
if (tape.pausing)
SendToServer_ContinuePlaying();
else
@@
-6215,7
+6215,7
@@
static void HandleGameButtons(struct GadgetInfo *gi)
case GAME_CTRL_ID_PLAY:
if (tape.pausing)
{
case GAME_CTRL_ID_PLAY:
if (tape.pausing)
{
-#if
!defined(MSDOS) && !defined(WIN32
)
+#if
defined(PLATFORM_UNIX
)
if (options.network)
SendToServer_ContinuePlaying();
else
if (options.network)
SendToServer_ContinuePlaying();
else