diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-06-12 22:51:01 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-06-12 23:19:03 +0200 |
| commit | 08c26de540f711ec888a46a922c1f4b89386d8c6 (patch) | |
| tree | 4196538302b97e3cf9888713461e958a6c1a197c /src/player | |
| parent | 5226dc466354cd15dd50b3c11660db7cb38eabed (diff) | |
| download | jancity-08c26de540f711ec888a46a922c1f4b89386d8c6.tar.gz | |
camera: remove dependency against terrain
This will allow using camera for purposes other than showing the game
map.
Diffstat (limited to 'src/player')
| -rw-r--r-- | src/player/src/human_player.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/player/src/human_player.c b/src/player/src/human_player.c index 14e4680..956b692 100644 --- a/src/player/src/human_player.c +++ b/src/player/src/human_player.c @@ -751,6 +751,7 @@ int human_player_init(const struct human_player_cfg *const cfg, peripheral_init(&p_cfg, &h->periph); cursor_init(&h->cam.cursor); + h->cam.dim = cfg->dim; h->top_gui = true; memmove(h->gui_res, h->pl.resources, sizeof h->gui_res); return 0; |
