X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_sp%2FmodMPX.c;h=b2c2602476e8a9e957fa1b917526f997e7b0ece6;hb=d45b35552f4ca1ada1266fb7e8b6968d878019a6;hp=fcb564f034aaa36c3764e43c67bb055a997d514e;hpb=5ba7f2d9a3f07f342afdf215a3307d5487cb6d43;p=rocksndiamonds.git diff --git a/src/game_sp/modMPX.c b/src/game_sp/modMPX.c index fcb564f0..b2c26024 100644 --- a/src/game_sp/modMPX.c +++ b/src/game_sp/modMPX.c @@ -144,7 +144,11 @@ void ReadMPX() PlayField8 = REDIM_1D(sizeof(byte), 0, FileMax + 1 - 1); DisPlayField = REDIM_1D(sizeof(byte), 0, FieldMax + 1 - 1); i = LDesc[LevelNumber].OffSet; +#if 1 + FILE_GET(FNum, i, PlayField8, FileMax + 1); +#else FILE_GET(FNum, i, &PlayField8, sizeof(PlayField8)); +#endif i = i + LevelMax + 1; FILE_GET(FNum, i, &LInfo, sizeof(LInfo)); // store level info in an extra structure fclose(FNum);