We need to use a non-negative tilsetID for the editor test tiles or things deep within the tile code will ignore us for base tiles. Since tileset IDs get cast to shorts in places for encoding into FQTileSetIds, the biggest we can use to try to not conflict is Short.MAX_VALUE.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@288 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -173,7 +173,7 @@ public class TestTileLoader implements TileSetIDBroker
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** The value of the next fakeID we'll hand out. */
|
/** The value of the next fakeID we'll hand out. */
|
||||||
protected int _fakeID = -1;
|
protected int _fakeID = Short.MAX_VALUE;
|
||||||
|
|
||||||
/** A mapping of pathname -> tileset id. */
|
/** A mapping of pathname -> tileset id. */
|
||||||
protected HashMap _idmap = new HashMap();
|
protected HashMap _idmap = new HashMap();
|
||||||
|
|||||||
Reference in New Issue
Block a user