Improve worldpos.h
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user