diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2017-12-18 19:41:41 +0000 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2017-12-18 19:41:41 +0000 |
commit | 4c3e827488cdea1da1b7069ddd78e94fed87d010 (patch) | |
tree | f82a92f6a86285d900fdff297618bc8c3a43e34c /src/game/worldgen.cpp | |
parent | c6489d36f6de7464c555f04d5d4324f50fa6c51f (diff) |
Make decos spawn around tile centers.
Diffstat (limited to 'src/game/worldgen.cpp')
-rw-r--r-- | src/game/worldgen.cpp | 2 |
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, |