(svn r16551) -Codechange: use shift instead of multiplication in TileXY()

pull/155/head
smatz 15 years ago
parent 6ba1c691ad
commit 8786c8792d

@ -161,7 +161,7 @@ typedef int32 TileIndexDiff;
*/
static inline TileIndex TileXY(uint x, uint y)
{
return (y * MapSizeX()) + x;
return (y << MapLogX()) + x;
}
/**

Loading…
Cancel
Save