home · contact · privacy
Made Map struct use yx_uint16 for 2D coordinates/sizes.
[plomrogue] / src / roguelike.h
index 9ecd71a890f9f90a3153a0a45862dee88002eddd..5dd17f797572af839d76dd3c7bfafab991b856af 100644 (file)
@@ -13,10 +13,8 @@ struct World {
   struct Player * player; };
 
 struct Map {
-  uint16_t width;
-  uint16_t height;
-  uint16_t offset_x;
-  uint16_t offset_y;
+  struct yx_uint16 size;
+  struct yx_uint16 offset;
   char * cells; };
 
 struct Player {