Skip to content

Commit 1531f4a

Browse files
authored
Fix headup hole lookup (#267) (#268)
When searching for a particular headup slot, don't return on the first empty hole, but rather try to find if the matching slot is in use. This resolves a bug where two headups of the same type could end up displayed on top of each other. Signed-off-by: Artur Rojek <contact@artur-rojek.eu>
1 parent f4eb9a8 commit 1531f4a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/DETHRACE/common/displays.c

-1
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,6 @@ int FindAHeadupHoleWoofBarkSoundsABitRude(int pSlot_index) {
618618
}
619619
if (the_headup->type == eHeadup_unused) {
620620
empty_one = i;
621-
break;
622621
}
623622
}
624623
return empty_one;

0 commit comments

Comments
 (0)