Improve worldpos.h

This commit is contained in:
2025-11-09 20:55:41 -06:00
parent d6c497731f
commit aee06f51f0
8 changed files with 115 additions and 107 deletions

View File

@@ -67,11 +67,11 @@ void entityWalk(entity_t *entity, const entitydir_t direction) {
entity->direction = direction;
// Where are we moving?
uint8_t newX, newY;
worldunit_t newX, newY;
newX = entity->position.x;
newY = entity->position.y;
{
int8_t relX, relY;
worldunits_t relX, relY;
entityDirGetRelative(direction, &relX, &relY);
newX += relX;
newY += relY;