(svn r25844) -Change: Increase maximum number of object instances on the map from 64k to about 16M.

This commit is contained in:
frosch
2013-10-12 16:35:50 +00:00
parent 29f5eab56c
commit 69a0c91d63
6 changed files with 13 additions and 12 deletions

View File

@@ -2819,9 +2819,9 @@ bool AfterLoadGame()
/* Move ObjectType from map to pool */
for (TileIndex t = 0; t < map_size; t++) {
if (IsTileType(t, MP_OBJECT)) {
Object *o = Object::GetByTile(t);
Object *o = Object::Get(_m[t].m2);
o->type = _m[t].m5;
_m[t].m5 = 0; // cleanup for next usage
_m[t].m5 = 0; // zero upper bits of (now bigger) ObjectID
}
}
}