X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Finit.c;h=cbfab54b20dae6f0bb8a34c653630f0e075dd0b1;hb=e7f36cd97c8580345714b4a22d6b4ad291e50ed6;hp=6931936ee00a902d1aa55ba437dfa8dba5d5fa95;hpb=59c2e609872b70cb4c458004cd9e2fe22c86a54b;p=rocksndiamonds.git diff --git a/src/init.c b/src/init.c index 6931936e..cbfab54b 100644 --- a/src/init.c +++ b/src/init.c @@ -92,6 +92,8 @@ void OpenAll(int argc, char *argv[]) void InitLevelAndPlayerInfo() { + int i; + 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 */ + + for (i=0; iconnected = TRUE; + local_player->local = TRUE; } void InitNetworkServer()