Switch from IntListUtil to ArrayUtil.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2245 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
//
|
//
|
||||||
// $Id: RuntimeSpotSceneImpl.java,v 1.6 2003/02/04 03:12:07 mdb Exp $
|
// $Id: RuntimeSpotSceneImpl.java,v 1.7 2003/02/06 18:58:30 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.whirled.spot.server;
|
package com.threerings.whirled.spot.server;
|
||||||
|
|
||||||
|
import com.samskivert.util.ArrayUtil;
|
||||||
import com.samskivert.util.IntListUtil;
|
import com.samskivert.util.IntListUtil;
|
||||||
|
|
||||||
import com.threerings.crowd.data.PlaceConfig;
|
import com.threerings.crowd.data.PlaceConfig;
|
||||||
@@ -100,13 +101,13 @@ public class RuntimeSpotSceneImpl extends RuntimeSceneImpl
|
|||||||
IntListUtil.getMaxValue(_model.locationIds), 0) + 1;
|
IntListUtil.getMaxValue(_model.locationIds), 0) + 1;
|
||||||
|
|
||||||
// expand the necessary arrays
|
// expand the necessary arrays
|
||||||
_model.locationIds = IntListUtil.append(_model.locationIds, nlocid);
|
_model.locationIds = ArrayUtil.append(_model.locationIds, nlocid);
|
||||||
_model.locationX = IntListUtil.append(_model.locationX, locX);
|
_model.locationX = ArrayUtil.append(_model.locationX, locX);
|
||||||
_model.locationY = IntListUtil.append(_model.locationY, locY);
|
_model.locationY = ArrayUtil.append(_model.locationY, locY);
|
||||||
_model.locationOrients =
|
_model.locationOrients =
|
||||||
IntListUtil.append(_model.locationOrients, orient);
|
ArrayUtil.append(_model.locationOrients, orient);
|
||||||
_model.locationClusters =
|
_model.locationClusters =
|
||||||
IntListUtil.append(_model.locationOrients, cluster);
|
ArrayUtil.append(_model.locationOrients, cluster);
|
||||||
|
|
||||||
return nlocid;
|
return nlocid;
|
||||||
}
|
}
|
||||||
@@ -120,10 +121,10 @@ public class RuntimeSpotSceneImpl extends RuntimeSceneImpl
|
|||||||
|
|
||||||
// expand the necessary portal arrays
|
// expand the necessary portal arrays
|
||||||
_model.neighborIds =
|
_model.neighborIds =
|
||||||
IntListUtil.append(_model.neighborIds, targetSceneId);
|
ArrayUtil.append(_model.neighborIds, targetSceneId);
|
||||||
_model.portalIds = IntListUtil.append(_model.portalIds, nlocid);
|
_model.portalIds = ArrayUtil.append(_model.portalIds, nlocid);
|
||||||
_model.targetLocIds =
|
_model.targetLocIds =
|
||||||
IntListUtil.append(_model.targetLocIds, targetLocId);
|
ArrayUtil.append(_model.targetLocIds, targetLocId);
|
||||||
|
|
||||||
return nlocid;
|
return nlocid;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user