diff options
Diffstat (limited to 'src/platform.odin')
| -rw-r--r-- | src/platform.odin | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/platform.odin b/src/platform.odin index 150d96c..674e1a3 100644 --- a/src/platform.odin +++ b/src/platform.odin @@ -9,7 +9,7 @@ Platform :: struct { } make_platform :: proc(rect: Rect) -> (Entity_Handle, ^Platform) { - handle, body := phys.make_body(&state.physics_world, transmute(phys.Rect)rect) + handle, body := phys.make_body(transmute(phys.Rect)rect) return make_entity(&state.platform_list, Platform { body = handle, }) @@ -18,7 +18,7 @@ make_platform :: proc(rect: Rect) -> (Entity_Handle, ^Platform) { draw_platforms :: proc() { iter := iter_entity_list(state.platform_list) for p in entity_list_iter(&iter) { - body := phys.get_body(state.physics_world, p.body) - draw.rect(&state.renderer, cast(draw.Rect)body.rect) + body := phys.get_body(p.body) + draw.rect(cast(draw.Rect)body.rect) } } |
