X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fgame_sp%2FmodMPX.c;h=b2c2602476e8a9e957fa1b917526f997e7b0ece6;hp=fcb564f034aaa36c3764e43c67bb055a997d514e;hb=e63e92923fa0196ba7d538d4c8f5a16994e3bee8;hpb=8d3d7d213a9691455a49544624bf380e85f43461 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);