summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2017-12-18 19:41:41 +0000
committerPaweł Redman <pawel.redman@gmail.com>2017-12-18 19:41:41 +0000
commit4c3e827488cdea1da1b7069ddd78e94fed87d010 (patch)
treef82a92f6a86285d900fdff297618bc8c3a43e34c
parentc6489d36f6de7464c555f04d5d4324f50fa6c51f (diff)
Make decos spawn around tile centers.
-rw-r--r--src/game/worldgen.cpp2
1 files changed, 1 insertions, 1 deletions
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,