aboutsummaryrefslogtreecommitdiff
path: root/src/game
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/game
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/game')
-rw-r--r--src/game/src/game.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/src/game.c b/src/game/src/game.c
index 3c03dd5..dc3d55b 100644
--- a/src/game/src/game.c
+++ b/src/game/src/game.c
@@ -28,6 +28,12 @@ int game(void)
{
.sel_periph = PERIPHERAL_TYPE_KEYBOARD_MOUSE,
.padn = i,
+ .dim =
+ {
+ .w = MAP_W,
+ .h = MAP_H,
+ },
+
.pl =
{
.team = PLAYER_COLOR_BLUE,