aboutsummaryrefslogtreecommitdiff
path: root/sprite_system.c
diff options
context:
space:
mode:
Diffstat (limited to 'sprite_system.c')
-rw-r--r--sprite_system.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sprite_system.c b/sprite_system.c
index 99360fc..526c097 100644
--- a/sprite_system.c
+++ b/sprite_system.c
@@ -1,6 +1,7 @@
#include "asset.h"
#include "components.h"
#include "render.h"
+#include "standard.h"
#include "world.h"
void sprite_system(const World* world) {
@@ -17,7 +18,7 @@ void sprite_system(const World* world) {
sprite = &world->sprites[i];
b = get_bitmap(sprite->id);
- render_bitmap(b, pos->x, pos->y, &sprite->rect);
+ render_bitmap(b, pos->x >> fbits, pos->y >> fbits, &sprite->rect);
}
}
}