Skip to content

Commit 4957f29

Browse files
committed
Turn numbers yellow when all monsters killed/items collected/secrets found
1 parent 55d6e63 commit 4957f29

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

client/src/st_new.cpp

+6-3
Original file line numberDiff line numberDiff line change
@@ -807,12 +807,15 @@ static void drawLevelStats() {
807807
}
808808
else
809809
{
810-
StrFormat(line, TEXTCOLOR_RED "K" TEXTCOLOR_NORMAL " %d/%d "
811-
TEXTCOLOR_RED "I" TEXTCOLOR_NORMAL " %d/%d "
812-
TEXTCOLOR_RED "S" TEXTCOLOR_NORMAL " %d/%d",
810+
StrFormat(line, TEXTCOLOR_RED "K" "%s" " %d/%d "
811+
TEXTCOLOR_RED "I" "%s" " %d/%d "
812+
TEXTCOLOR_RED "S" "%s" " %d/%d",
813+
(level.killed_monsters == (level.total_monsters + level.respawned_monsters) ? TEXTCOLOR_YELLOW : TEXTCOLOR_NORMAL),
813814
level.killed_monsters,
814815
(level.total_monsters + level.respawned_monsters),
816+
(level.found_items == level.total_items ? TEXTCOLOR_YELLOW : TEXTCOLOR_NORMAL),
815817
level.found_items, level.total_items,
818+
(level.found_secrets == level.total_secrets ? TEXTCOLOR_YELLOW : TEXTCOLOR_NORMAL),
816819
level.found_secrets, level.total_secrets);
817820
}
818821

0 commit comments

Comments
 (0)