Fixed some warnings

Moved global width/height
This commit is contained in:
2025-10-06 01:01:28 +01:00
parent 139b14ed71
commit a9612b2d57
2 changed files with 7 additions and 7 deletions

View File

@@ -35,7 +35,7 @@ void RenderWorld(World *world, D_Context *draw) {
World_Tile tileTypes[] = {dirt, middlePath, middlePathEdgeTop, middlePathEdgeRight, middlePathEdgeBottom, middlePathEdgeLeft, middlePathCornerTopLeft, middlePathCornerTopRight, middlePathCornerBottomRight, middlePathCornerTurnBottomLeft};
for (int i = 0; i < 4800; i++)
{
D_Rect(draw, (i % 96), __floor(i / 96), .texture = tileTypes[map[i]].tile, .angle = tileTypes[map[i]].rotation);
D_Rect(draw, (F32) (i % 96), (F32) (i / 96), .texture = tileTypes[map[i]].tile, .angle = (F32) tileTypes[map[i]].rotation);
}
for(U32 i = 0; i < world->npcCount; i++) {
NPC npc = world->npcs[i];