Textbox rendering back.

This commit is contained in:
2024-10-06 17:16:24 -05:00
parent 5444b0b8c7
commit 5256b32055
14 changed files with 140 additions and 82 deletions

View File

@ -20,7 +20,7 @@ void mapInit(
"Map width must be greater than 0."
);
assertTrue(
width < MAP_WIDTH_MAX,
width <= MAP_WIDTH_MAX,
"Map width must be less than or equal to MAP_WIDTH_MAX."
);
assertTrue(
@ -28,7 +28,7 @@ void mapInit(
"Map height must be greater than 0."
);
assertTrue(
height < MAP_HEIGHT_MAX,
height <= MAP_HEIGHT_MAX,
"Map height must be less than or equal to MAP_HEIGHT_MAX."
);
assertTrue(

View File

@ -9,8 +9,8 @@
#include "rpg/world/map.h"
#include "assert/assert.h"
#define TEST_MAP_WIDTH 16
#define TEST_MAP_HEIGHT 16
#define TEST_MAP_WIDTH MAP_WIDTH_MAX
#define TEST_MAP_HEIGHT MAP_HEIGHT_MAX
#define TEST_MAP_LAYERS 1
void testMapInit(map_t *map) {