Load is now rounded compile time.
This commit is contained in:
@@ -40,8 +40,8 @@ void entityLoad(entity_t *entity, const entity_t *source) {
|
||||
memoryZero(entity, sizeof(entity_t));
|
||||
|
||||
entity->type = source->type;
|
||||
entity->x = (uint32_t)roundf(source->x / (float_t)TILE_WIDTH_HEIGHT);
|
||||
entity->y = (uint32_t)roundf(source->y / (float_t)TILE_WIDTH_HEIGHT);
|
||||
entity->x = source->x;
|
||||
entity->y = source->y;
|
||||
entity->dir = source->dir;
|
||||
entity->id = source->id;
|
||||
|
||||
|
Reference in New Issue
Block a user