Skip to content

Commit

Permalink
Merge pull request #738 from doug1234/DonutDrawBooBoo
Browse files Browse the repository at this point in the history
Now not drawing the donut when the disable reach donut flag is set.
  • Loading branch information
doug1234 authored Dec 1, 2023
2 parents 3c6c8f4 + 47fbf67 commit 4a6fb61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion TemplePlus/ui/ui_intgame_turnbased.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include "gamesystems/objects/objsystem.h"
#include "raycast.h"
#include "hotkeys.h"
#include "config/config.h"

UiIntgameTurnbased uiIntgameTb;

Expand Down Expand Up @@ -931,7 +932,7 @@ void UiIntegameTurnbasedRepl::UiDrawAoOThreatRanges()

auto circleLoc = objects.GetLocationFull(combatant);
auto &renderer = tig->GetShapeRenderer3d();
if (minReachFt > 0.0f) {
if (minReachFt > 0.0f && !config.disableReachWeaponDonut) {
auto radiusInner = minReachFt* INCH_PER_FEET + radiusInch;
RenderHooks::DrawDonut3d(circleLoc, 1.0, 0x40808000, 0xFF808000, circleRadius, radiusInner);
}
Expand Down

0 comments on commit 4a6fb61

Please sign in to comment.