aboutsummaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-02-08 15:16:57 +0100
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-03-30 08:20:20 +0200
commit9f9c0226d03c060c3c5b12b7a8d37d2e8b372a74 (patch)
tree4fbc9523da206df65b9b68896f48bfd7c2243ac4 /src/game
parent6fe03359d8ec1b558f50a75fbf52c496a85939a0 (diff)
downloadjancity-9f9c0226d03c060c3c5b12b7a8d37d2e8b372a74.tar.gz
Refresh camera and terrain rendering on screen resize
Diffstat (limited to 'src/game')
-rw-r--r--src/game/src/game.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/src/game.c b/src/game/src/game.c
index 2f13a64..8907be9 100644
--- a/src/game/src/game.c
+++ b/src/game/src/game.c
@@ -79,6 +79,7 @@ int game(void)
};
exit |= human_player_update(&humans[i], &o);
+ terrain_update(&map);
if (terrain_render(&map, &h->cam)
|| human_player_render(h, &o)