Tile coordinate calculations were booched.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@611 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2001-11-08 06:58:57 +00:00
parent 281c00d3a3
commit 42eb80a104
@@ -1,5 +1,5 @@
//
// $Id: UniformTileSet.java,v 1.1 2001/11/08 03:04:44 mdb Exp $
// $Id: UniformTileSet.java,v 1.2 2001/11/08 06:58:57 mdb Exp $
package com.threerings.media.tile;
@@ -55,8 +55,8 @@ public class UniformTileSet extends TileSet
// figure out from whence to crop the tile
int tilesPerRow = tsimg.getWidth(null) / _width;
int row = tilesPerRow / tileId;
int col = tilesPerRow % tileId;
int row = tileId / tilesPerRow;
int col = tileId % tilesPerRow;
// crop the tile-sized image chunk from the full image
return _imgmgr.getImageCropped(