for (x = 0; x < level->fieldx; x++)
for (y = 0; y < level->fieldy; y++)
- level_mm->field[x][y] = map_element_RND_to_MM(level->field[x][y]);
+ Ur[x][y] =
+ level_mm->field[x][y] = map_element_RND_to_MM(level->field[x][y]);
}
void CopyNativeLevel_MM_to_RND(struct LevelInfo *level)
for (x = 0; x < level->fieldx; x++)
for (y = 0; y < level->fieldy; y++)
level->field[x][y] = map_element_MM_to_RND(level_mm->field[x][y]);
+
+ if (level_mm->auto_count_kettles)
+ {
+ level->gems_needed = 0;
+
+ for (x = 0; x < level->fieldx; x++)
+ for (y = 0; y < level->fieldy; y++)
+ if (level->field[x][y] == EL_MM_KETTLE ||
+ level->field[x][y] == EL_DF_CELL)
+ level->gems_needed++;
+ }
}
extern struct LevelInfo_MM native_mm_level;
extern struct EngineSnapshotInfo_MM engine_snapshot_mm;
+extern short Ur[MM_MAX_PLAYFIELD_WIDTH][MM_MAX_PLAYFIELD_HEIGHT];
+
extern void mm_open_all();
extern void mm_close_all();