(svn r184) -Fix: starting a new game in DesertLandscape crashed the game

This commit is contained in:
truelight 2004-09-08 17:44:29 +00:00
parent de18c544cc
commit 1a0a7ed763

View File

@ -644,7 +644,7 @@ static void CreateDesertOrRainForest()
SetMapExtraBits(tile, 1); SetMapExtraBits(tile, 1);
break; break;
} }
mt = _map_type_and_height[tile + i]; mt = _map_type_and_height[TILE_MASK(tile + i)];
} while ((mt & 0xC) == 0 && (mt >> 4) != MP_WATER); } while ((mt & 0xC) == 0 && (mt >> 4) != MP_WATER);
} while (++tile != TILES_X*TILES_Y); } while (++tile != TILES_X*TILES_Y);
@ -659,7 +659,7 @@ static void CreateDesertOrRainForest()
SetMapExtraBits(tile, 2); SetMapExtraBits(tile, 2);
break; break;
} }
} while ( !IS_TILETYPE(tile+i, MP_CLEAR) || (_map5[tile + i]&0x1C) != 0x14); } while ( !IS_TILETYPE(TILE_MASK(tile+i), MP_CLEAR) || (_map5[TILE_MASK(tile + i)]&0x1C) != 0x14);
} while (++tile != TILES_X*TILES_Y); } while (++tile != TILES_X*TILES_Y);
} }