projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-19981016-1
[rocksndiamonds.git]
/
src
/
init.c
diff --git
a/src/init.c
b/src/init.c
index 6931936ee00a902d1aa55ba437dfa8dba5d5fa95..cbfab54b20dae6f0bb8a34c653630f0e075dd0b1 100644
(file)
--- a/
src/init.c
+++ b/
src/init.c
@@
-92,6
+92,8
@@
void OpenAll(int argc, char *argv[])
void InitLevelAndPlayerInfo()
{
void InitLevelAndPlayerInfo()
{
+ int i;
+
local_player = &stored_player[0];
if (!LoadLevelInfo()) /* global level info */
local_player = &stored_player[0];
if (!LoadLevelInfo()) /* global level info */
@@
-99,6
+101,14
@@
void InitLevelAndPlayerInfo()
LoadPlayerInfo(PLAYER_SETUP); /* global setup info */
LoadPlayerInfo(PLAYER_LEVEL); /* level specific info */
LoadPlayerInfo(PLAYER_SETUP); /* global setup info */
LoadPlayerInfo(PLAYER_LEVEL); /* level specific info */
+
+ for (i=0; i<MAX_PLAYERS; i++)
+ {
+ stored_player[i].connected = FALSE;
+ stored_player[i].local = FALSE;
+ }
+ local_player->connected = TRUE;
+ local_player->local = TRUE;
}
void InitNetworkServer()
}
void InitNetworkServer()