From ac754b4967a826a8ffb3b36b000d42c57ef0ac8b Mon Sep 17 00:00:00 2001 From: HPW-Dev Date: Thu, 26 Dec 2024 04:36:15 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B2=D1=80=D0=B5=D0=BC=D0=B5=D0=BD=D0=BD?= =?UTF-8?q?=D1=8B=D0=B9=20=D1=84=D0=B8=D0=BA=D1=81=20=D0=B2=D0=B7=D1=80?= =?UTF-8?q?=D1=8B=D0=B2=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/game/entity/explosion-loader.cpp | 15 +++++++-------- src/game/scene/scene-difficulty.cpp | 2 ++ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/game/entity/explosion-loader.cpp b/src/game/entity/explosion-loader.cpp index 8a7f7358..249d9867 100644 --- a/src/game/entity/explosion-loader.cpp +++ b/src/game/entity/explosion-loader.cpp @@ -63,19 +63,18 @@ struct Explosion_loader::Impl { it->status.ignore_self_type = true; it->status.ignore_master = true; // разлёт в случайную сторону, но с сохранением начального направления - Vec motion = rand_normalized_stable() * rndr(0, pps(m_particles_range)); + #pragma message("TODO fix stattering") + constexpr real range_fixer = 6.5f; // TODO временное решение + Vec motion = rand_normalized_stable() * rndr(0, pps(m_particles_range) * range_fixer); it->phys.set_vel(it->phys.get_vel() + motion); init_shared(it->heat_distort, m_heat_distort); - // TODO создание вспышки } // for m_particle_count - /* - auto it = hpw::entity_mgr->allocate(); + /* auto it = hpw::entity_mgr->allocate(); Entity_loader::prepare(*it, master, pos); - */ - return {}; // TODO от взрыва возвращать хитбокс - } // op () - + // TODO создание вспышки */ + return {}; // TODO от взрыва возвращать хитбокс; + } }; // Impl Explosion_loader::Explosion_loader(cr config) diff --git a/src/game/scene/scene-difficulty.cpp b/src/game/scene/scene-difficulty.cpp index 914c7a6a..9722ad35 100644 --- a/src/game/scene/scene-difficulty.cpp +++ b/src/game/scene/scene-difficulty.cpp @@ -33,6 +33,8 @@ void Scene_difficulty::draw(Image& dst) const { menu->draw(dst); } +#pragma message("TODO return replays") + void Scene_difficulty::init_menu() { Menu_items menu_items { new_shared(get_locale_str("difficulty_select.start"), []{