projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20060816-4-src
[rocksndiamonds.git]
/
src
/
network.c
diff --git
a/src/network.c
b/src/network.c
index 2f990f7f9911dad78be872df5e8c7cf67b920239..1733aba93441a77d164937e9bccee05a7257f0d5 100644
(file)
--- a/
src/network.c
+++ b/
src/network.c
@@
-431,11
+431,18
@@
static void Handle_OP_NUMBER_WANTED()
}
else if (old_client_nr == first_player.nr) /* failed -- local player? */
{
}
else if (old_client_nr == first_player.nr) /* failed -- local player? */
{
+#if 0
char *color[] = { "yellow", "red", "green", "blue" };
char *color[] = { "yellow", "red", "green", "blue" };
+#endif
char request[100];
char request[100];
+#if 1
+ sprintf(request, "Sorry ! Player %d already exists ! You are player %d !",
+ index_nr_wanted + 1, new_index_nr + 1);
+#else
sprintf(request, "Sorry ! %s player still exists ! You are %s player !",
color[index_nr_wanted], color[new_index_nr]);
sprintf(request, "Sorry ! %s player still exists ! You are %s player !",
color[index_nr_wanted], color[new_index_nr]);
+#endif
Request(request, REQ_CONFIRM);
Error(ERR_NETWORK_CLIENT, "cannot switch -- you keep client # %d",
Request(request, REQ_CONFIRM);
Error(ERR_NETWORK_CLIENT, "cannot switch -- you keep client # %d",
@@
-534,20
+541,7
@@
static void Handle_OP_START_PLAYING()
LoadTape(level_nr);
LoadLevel(level_nr);
LoadTape(level_nr);
LoadLevel(level_nr);
-#if 1
StartGameActions(FALSE, setup.autorecord, new_random_seed);
StartGameActions(FALSE, setup.autorecord, new_random_seed);
-#else
- if (setup.autorecord)
- TapeStartRecording();
-
- if (tape.recording)
- tape.random_seed = new_random_seed;
-
- InitRND(new_random_seed);
-
- game_status = GAME_MODE_PLAYING;
- InitGame();
-#endif
}
static void Handle_OP_PAUSE_PLAYING()
}
static void Handle_OP_PAUSE_PLAYING()