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

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
smatz 16 years ago
parent ec78a39f9e
commit d6996c110a

@ -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