for(x=0; x<MAX_LEV_FIELDX; x++)
for(y=0; y<MAX_LEV_FIELDY; y++)
- Feld[x][y] = Ur[x][y] = EL_EMPTY;
+ native_mm_level.field[x][y] = Feld[x][y] = Ur[x][y] = EL_EMPTY;
native_mm_level.time = 100;
native_mm_level.kettles_needed = 0;
for(i=0; i<LEVEL_SCORE_ELEMENTS; i++)
native_mm_level.score[i] = 10;
- Feld[0][0] = Ur[0][0] = EL_MCDUFFIN_RIGHT;
- Feld[STD_LEV_FIELDX-1][STD_LEV_FIELDY-1] =
+ native_mm_level.field[0][0] = Feld[0][0] = Ur[0][0] = EL_MCDUFFIN_RIGHT;
+ native_mm_level.field[STD_LEV_FIELDX-1][STD_LEV_FIELDY-1] =
+ Feld[STD_LEV_FIELDX-1][STD_LEV_FIELDY-1] =
Ur[STD_LEV_FIELDX-1][STD_LEV_FIELDY-1] = EL_EXIT_CLOSED;
}
for(y=0; y<level->fieldy; y++)
for(x=0; x<level->fieldx; x++)
- Feld[x][y] = Ur[x][y] =
+ native_mm_level.field[x][y] = Feld[x][y] = Ur[x][y] =
checkLevelElement(level->encoding_16bit_field ?
getFile16BitInteger(file, BYTE_ORDER_BIG_ENDIAN) :
getFile8Bit(file));