map.h
changeset 1202 4d2a20c50760
parent 1174 6a5e747f3ba6
child 1209 2e00193652b2
--- 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;