From 3fffe2e9b546aaa517a224277994d562885aa6e9 Mon Sep 17 00:00:00 2001 From: Mike Thomas Date: Wed, 2 May 2007 23:48:41 +0000 Subject: [PATCH] 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 --- src/java/com/threerings/stage/tools/editor/TestTileLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/com/threerings/stage/tools/editor/TestTileLoader.java b/src/java/com/threerings/stage/tools/editor/TestTileLoader.java index 6df66767..ce77e2aa 100644 --- a/src/java/com/threerings/stage/tools/editor/TestTileLoader.java +++ b/src/java/com/threerings/stage/tools/editor/TestTileLoader.java @@ -173,7 +173,7 @@ public class TestTileLoader implements TileSetIDBroker } /** 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. */ protected HashMap _idmap = new HashMap();