X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Finit.c;h=b048083108d3fbe97c6f653798aed31f1c84094c;hb=c4b26cf489dcc65a00bfcc05f7898700d2f0c9e4;hp=c3798d5abd4ac316fd9aba0f23a3d948636572f0;hpb=1146572677fd6858df5fc1fabfd7f7294bdefed7;p=rocksndiamonds.git diff --git a/src/init.c b/src/init.c index c3798d5a..b0480831 100644 --- a/src/init.c +++ b/src/init.c @@ -94,6 +94,9 @@ void InitLevelAndPlayerInfo() { int i; + +#if 0 + /* initialize local setup */ setup.sound_on = TRUE; setup.sound_loops_on = FALSE; @@ -120,16 +123,30 @@ void InitLevelAndPlayerInfo() setup.input[i].key.bomb = (i == 0 ? DEFAULT_KEY_BOMB : KEY_UNDEFINDED); } +#endif + + + /* choose default local player */ local_player = &stored_player[0]; if (!LoadLevelInfo()) /* global level info */ Error(ERR_EXIT, NULL); + + LoadSetup(); /* global setup info */ + LoadLevelSetup(); /* info about last played level */ + + +#if 0 LoadPlayerInfo(PLAYER_SETUP); /* global setup info */ LoadPlayerInfo(PLAYER_LEVEL); /* level specific info */ +#endif + +#if 0 /* after LoadPlayerInfo(), because it overwrites 'local_player' */ +#endif for (i=0; i