From 4c3e827488cdea1da1b7069ddd78e94fed87d010 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Mon, 18 Dec 2017 19:41:41 +0000 Subject: Make decos spawn around tile centers. --- src/game/worldgen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/worldgen.cpp') diff --git a/src/game/worldgen.cpp b/src/game/worldgen.cpp index 6ade1a6..0bf67ed 100644 --- a/src/game/worldgen.cpp +++ b/src/game/worldgen.cpp @@ -40,7 +40,7 @@ void add_decoration(world_t *world, state_t *game, v2f_t x) deco = new deco_t(game, type); deco->phase_shift = offset[0] * 500.0; - deco->place(world, x); + deco->place(world, center); } void worldgen(world_t *world, sector_index_t index, sector_t *sector, -- cgit