Pavel Okhlopkov
|
97106bd6ae
|
fix(render): code quality cleanup
Magic number elimination:
- Create protocol_constants.hpp, warden_constants.hpp,
render_constants.hpp, ui_constants.hpp
- Replace ~55 magic numbers across game_handler, warden_handler,
m2_renderer_render
Reduce nesting depth:
- Extract 5 parseEffect* methods from handleSpellLogExecute
(max indent 52 → 16 cols)
- Extract resolveSpellSchool/playSpellCastSound/playSpellImpactSound
from 3× duplicate audio blocks in handleSpellGo
- Flatten SMSG_INVENTORY_CHANGE_FAILURE with early-return guards
- Extract drawScreenEdgeVignette() for 3 duplicate vignette blocks
DRY extract patterns:
- Replace 12 compound expansion checks with isPreWotlk() across
movement_handler (9), chat_handler (1), social_handler (1)
const to constexpr:
- Promote 23+ static const arrays/scalars to static constexpr across
12 source files
Error handling:
- Convert PIN auth from exceptions to std::optional<PinProof>
- Add [[nodiscard]] to 15+ initialize/parse methods
- Wrap ~20 unchecked initialize() calls with LOG_WARNING/LOG_ERROR
Signed-off-by: Pavel Okhlopkov <pavel.okhlopkov@flant.com>
|
2026-04-06 22:43:13 +03:00 |
|
Kelsi
|
e12141a673
|
Add configurable MSAA anti-aliasing, update auth screen and terrain shader
- MSAA: conditional 2-att (off) vs 3-att (on) render pass with auto-resolve
- MSAA: multisampled color+depth images, query max supported sample count
- MSAA: .setMultisample() on all 25+ main-pass pipelines across 17 renderers
- MSAA: recreatePipelines() on every sub-renderer for runtime MSAA changes
- MSAA: Renderer::setMsaaSamples() orchestrates swapchain+pipeline+ImGui rebuild
- MSAA: Anti-Aliasing combo (Off/2x/4x/8x) in Video settings, persisted
- Update auth screen assets and terrain fragment shader
|
2026-02-22 02:59:24 -08:00 |
|
Kelsi
|
e163813dee
|
Add Warrior Charge ability with ribbon trail visual effect
Implements charge rush-to-target for spell IDs 100/6178/11578 with
smoothstep lerp movement, vertical red-orange ribbon trail, dust puffs,
client-side range validation, and sound fallback chain.
|
2026-02-19 21:13:13 -08:00 |
|