X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_sp%2FGlobals.c;h=36034f5b63ba5159e42c90531836a1063eb5ec90;hb=0f5b7f63f2d3d75ba646795a3c1ea9fc4cee4845;hp=4da9c45b06e970bcf5e40ea3739b705798c06d7e;hpb=1533b136c6f8d0656cc45ca4c204104ef3d75249;p=rocksndiamonds.git diff --git a/src/game_sp/Globals.c b/src/game_sp/Globals.c index 4da9c45b..36034f5b 100644 --- a/src/game_sp/Globals.c +++ b/src/game_sp/Globals.c @@ -397,11 +397,35 @@ void ReadLevel() for (i = 0; i <= FieldMax; i++) { - PlayField16[i] = PlayField8[i]; + PlayField16[i] = PlayField8[i]; DisPlayField[i] = PlayField8[i]; PlayField8[i] = 0; } +#if 0 + { + int x, y; + + for (x = 0; x < 60; x++) + printf("%02d.", x); + printf("\n"); + + for (x = 0; x < 60; x++) + printf("..."); + printf("\n"); + + for (y = 0; y < 24; y++) + { + for (x = 0; x < 60; x++) + { + printf("%02d.", PlayField16[y * 60 + x]); + } + + printf("\n"); + } + } +#endif + AnimationPosTable = REDIM_1D(sizeof(int), 0, LevelMax - 2 *FieldWidth); AnimationSubTable = REDIM_1D(sizeof(byte), 0, LevelMax - 2 *FieldWidth); TerminalState = REDIM_1D(sizeof(byte), FieldWidth, LevelMax - FieldWidth);