From 8a22ca9594a2e01a11d54f72c4d1c42913ebb989 Mon Sep 17 00:00:00 2001 From: Kp Date: Tue, 22 Dec 2015 04:18:51 +0000 Subject: [PATCH] Shorten multi_apply_goal_textures --- similar/main/multi.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/similar/main/multi.cpp b/similar/main/multi.cpp index 4219dd552..e0ffed354 100644 --- a/similar/main/multi.cpp +++ b/similar/main/multi.cpp @@ -3637,15 +3637,19 @@ void multi_apply_goal_textures() range_for (const auto i, highest_valid(Segments)) { const auto &&seg = vsegptr(static_cast(i)); + uint8_t team_mask; if (seg->special==SEGMENT_IS_GOAL_BLUE) { - apply_segment_goal_texture(seg, TMI_GOAL_BLUE); + team_mask = TMI_GOAL_BLUE; } else if (seg->special==SEGMENT_IS_GOAL_RED) { // Make both textures the same if Hoard mode - apply_segment_goal_texture(seg, TMI_GOAL_RED); + team_mask = TMI_GOAL_RED; } + else + continue; + apply_segment_goal_texture(seg, team_mask); } }