Skip to content

Commit

Permalink
CrazyGames: Happytime (won FFA ranked) [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
geneotech committed Jul 26, 2024
1 parent ba67c82 commit 23e3b79
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/game/messages/hud_message.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ namespace messages {

bool losers_abandoned = false;
bool was_ranked = false;
bool was_ffa = false;

int first_team_score = 0;
int second_team_score = 0;
Expand All @@ -90,6 +91,10 @@ namespace messages {
std::string match_start_timestamp;

bool is_tie() const {
if (was_ffa) {
return false;
}

if (losers_abandoned) {
return false;
}
Expand Down
2 changes: 2 additions & 0 deletions src/game/modes/arena_mode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2971,6 +2971,8 @@ void arena_mode::post_match_summary(const input_type in, const const_logic_step
summary.was_ranked = is_ranked_live();

if (in.rules.is_ffa()) {
summary.was_ffa = true;

for_each_player_best_to_worst_in(
faction_type::FFA,
[&](const auto& id, const auto& player) {
Expand Down

0 comments on commit 23e3b79

Please sign in to comment.