aboutsummaryrefslogtreecommitdiff
path: root/src/player
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-06-12 22:51:01 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-06-12 23:19:03 +0200
commit3cb276b19fa21699aa7241956f5b11d1d5b24fe3 (patch)
tree39303246e4fa8ed9f61b439e05824b08ae1cfe50 /src/player
parent0f9e2d89589f05847fb7dc808da1594f0961b5b4 (diff)
downloadrts-3cb276b19fa21699aa7241956f5b11d1d5b24fe3.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.c1
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;