map.h
changeset 1202 7d8b86bd8ba2
parent 1174 27e386195965
child 1209 a1ac96655b79
--- a/map.h	Fri Jan 28 12:21:04 2005 +0000
+++ b/map.h	Fri Jan 28 15:31:04 2005 +0000
@@ -26,6 +26,10 @@
 /* The number of tiles in the map */
 static inline uint MapSize(void) { return MapSizeX() * MapSizeY(); }
 
+// Scale a number relative to the map size
+uint ScaleByMapSize(uint); // Scale relative to the number of tiles
+uint ScaleByMapSize1D(uint); // Scale relative to the circumference of the map
+
 typedef uint32 TileIndex;