polyadvent

A game engine from scratch in C
git clone git://jb55.com/polyadvent
Log | Files | Refs | README

commit c658dbe92967a0345bd41b09932f02a191ba5678
parent dfc3f9664c932c14a418b8b296750d86041aeeba
Author: William Casarin <jb55@jb55.com>
Date:   Tue, 25 Oct 2022 08:21:07 -0700

fix orbit crash

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Msrc/orbit_util.h | 2+-
Msrc/test_game.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/orbit_util.h b/src/orbit_util.h @@ -1,5 +1,5 @@ #pragma once void orbit_update_from_mouse(struct orbit *camera, struct input *input, - float mouse_sens, struct entity *player, + float mouse_sens, struct entity *player, float *offset, float dt); diff --git a/src/test_game.c b/src/test_game.c @@ -238,7 +238,7 @@ static void player_update(struct engine *engine, struct test_game *game, struct orbit_update_from_mouse(camera, &engine->input, engine->user_settings.mouse_sens, - player, engine->dt); + player, NULL, engine->dt); camera_keep_above_ground(&game->terrain, cam_node);