From 7f3b51dd17977b42d6ab0bc723824dc109eb024f Mon Sep 17 00:00:00 2001 From: Sergeanur Date: Sat, 17 Oct 2020 16:04:11 +0300 Subject: Small inner fix --- src/control/Pickups.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/control/Pickups.cpp b/src/control/Pickups.cpp index b770ab12..71d7401e 100644 --- a/src/control/Pickups.cpp +++ b/src/control/Pickups.cpp @@ -1106,8 +1106,14 @@ CPickups::DoPickUpEffects(CEntity *entity) } if (doInnerGlow) - CCoronas::RegisterCorona((uintptr)entity + 8, 126, 69, 121, 255, entity->GetPosition(), 1.2f, 50.0f, - CCoronas::TYPE_STAR, CCoronas::FLARE_NONE, CCoronas::REFLECTION_ON, CCoronas::LOSCHECK_OFF, CCoronas::STREAK_ON, 0.f); + CCoronas::RegisterCorona( +#ifdef FIX_BUGS + (uintptr)entity + 8 + 4, +#else + (uintptr)entity + 9, +#endif + 126, 69, 121, 255, entity->GetPosition(), 1.2f, 50.0f, + CCoronas::TYPE_STAR, CCoronas::FLARE_NONE, CCoronas::REFLECTION_ON, CCoronas::LOSCHECK_OFF, CCoronas::STREAK_ON, 0.0f); } } -- cgit v1.2.3