Don't complain if a direction for a spot is specified as '-1',
it's intentional. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2295 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: ObjectTileSetRuleSet.java,v 1.8 2003/02/11 06:18:59 mdb Exp $
|
||||
// $Id: ObjectTileSetRuleSet.java,v 1.9 2003/03/03 20:41:50 ray Exp $
|
||||
|
||||
package com.threerings.media.tile.tools.xml;
|
||||
|
||||
@@ -140,7 +140,10 @@ public class ObjectTileSetRuleSet extends SwissArmyTileSetRuleSet
|
||||
for (int ii = 0; ii < sorients.length; ii++) {
|
||||
sorients[ii] = (byte)
|
||||
DirectionUtil.fromShortString(ostrs[ii]);
|
||||
if (sorients[ii] == DirectionUtil.NONE) {
|
||||
if ((sorients[ii] == DirectionUtil.NONE) &&
|
||||
// don't complain if they didn't even try to
|
||||
// specify a valid direction
|
||||
(! ostrs[ii].equals("-1"))) {
|
||||
System.err.println("Invalid spot orientation " +
|
||||
"[set=" + set.getName() +
|
||||
", idx=" + ii +
|
||||
|
||||
Reference in New Issue
Block a user