fixed problem where ThisPlayer would always be Player 0 (from Russell Smith)

This commit is contained in:
nehalmistry 2002-11-28 07:29:53 +00:00
parent c8f2b08943
commit 2e04be70a0
2 changed files with 2 additions and 2 deletions

View file

@ -1741,6 +1741,8 @@ local void CreateEditor(void)
user_gc(SCM_BOOL_F); // Cleanup memory after load
}
ThisPlayer = &Players[0];
FlagRevealMap = 1; // editor without fog and all visible
TheMap.NoFogOfWar = 1;
if (!*CurrentMapPath) { // new map!

View file

@ -298,8 +298,6 @@ global void CreateGame(char* filename, WorldMap* map)
if( NetworkFildes!=-1 ) { // Prepare network play
DebugLevel0Fn("Client setup: Calling InitNetwork2\n");
InitNetwork2();
} else {
ThisPlayer = &Players[0];
}
if( GameIntro.Title ) {