From 3c15992a4f856d33bf521624740b969ae07f0b85 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Fri, 20 Apr 2018 18:38:51 +0200 Subject: Fix rockets not hitting replicators. --- src/game/game.cpp | 2 +- src/game/unit_repl.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game') 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; -- cgit