… | |
… | |
58 | /* mape darkness used to enforce the MAX_DARKNESS value. |
58 | /* mape darkness used to enforce the MAX_DARKNESS value. |
59 | * but IMO, if it is beyond max value, that should be fixed |
59 | * but IMO, if it is beyond max value, that should be fixed |
60 | * on the map or in the code. |
60 | * on the map or in the code. |
61 | */ |
61 | */ |
62 | #define MAP_DARKNESS(m) (m)->darkness |
62 | #define MAP_DARKNESS(m) (m)->darkness |
63 | |
|
|
64 | #define MAP_WIDTH(m) (m)->width |
|
|
65 | #define MAP_HEIGHT(m) (m)->height |
|
|
66 | |
63 | |
67 | /* Convenient function - total number of spaces is used |
64 | /* Convenient function - total number of spaces is used |
68 | * in many places. |
65 | * in many places. |
69 | */ |
66 | */ |
70 | #define MAP_SIZE(m) ((m)->width * (m)->height) |
67 | #define MAP_SIZE(m) ((m)->width * (m)->height) |