summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2018-04-20 18:38:51 +0200
committerPaweł Redman <pawel.redman@gmail.com>2018-04-20 18:38:51 +0200
commit3c15992a4f856d33bf521624740b969ae07f0b85 (patch)
tree32282688b275dca57e12ff4a30b5847b1004ca0d /src
parentcfffdb2104364032edfcfa57b47e0664dc7f0c35 (diff)
Fix rockets not hitting replicators.
Diffstat (limited to 'src')
-rw-r--r--src/game/game.cpp2
-rw-r--r--src/game/unit_repl.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/game/game.cpp b/src/game/game.cpp
index f6a741c..6ffb629 100644
--- a/src/game/game.cpp
+++ b/src/game/game.cpp
@@ -443,7 +443,7 @@ void state_t::explosion(v2f_t x)
int damage;
end = x + prng.unit_vec2() * 6.0f;
- trace = world.ray_v_all(x, end, CF_SOLID|CF_BODY|CF_BODY_SMALL|CF_DECOS, nullptr);
+ trace = world.ray_v_all(x, end, CF_SURFACE|CF_SOLID|CF_BODY|CF_BODY_SMALL|CF_DECOS, nullptr);
tracer = new fx_tracer_t(this, x, trace.end);
tracer->place(&world);
diff --git a/src/game/unit_repl.cpp b/src/game/unit_repl.cpp
index fb66176..584778d 100644
--- a/src/game/unit_repl.cpp
+++ b/src/game/unit_repl.cpp
@@ -25,7 +25,7 @@ unit_repl_t::unit_repl_t(game::state_t *game_) : unit_t(game_, UNIT_REPL)
size[1] = {+0.4f, +0.4f};
render_size = size;
render_layer = render::LAYER_FLAT;
- cmodel.cflags = CF_BACKGROUND;
+ cmodel.cflags = CF_SURFACE;
name = text::get(text::UNIT_NAME_REPL);
ignore_waking = false;