Skip to content

Commit

Permalink
Update multi.h
Browse files Browse the repository at this point in the history
  • Loading branch information
is-this-c authored Dec 11, 2024
1 parent 0d7c2ac commit 4f804b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion game_patch/rf/multi.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ namespace rf
static auto& multi_tdm_get_red_team_score = addr_as_ref<int()>(0x004828F0); // returns ubyte in vanilla game
static auto& multi_tdm_get_blue_team_score = addr_as_ref<int()>(0x00482900); // returns ubyte in vanilla game
static auto& multi_num_players = addr_as_ref<int()>(0x00484830);
[[nodiscard]] static inline int32_t multi_num_spawned_players() {
[[nodiscard]] inline int32_t multi_num_spawned_players() {
const auto f = [] (auto& p) { return !player_is_dead(&p) && !player_is_dying(&p); };
return std::ranges::count_if(SinglyLinkedList{player_list}, f);
}
Expand Down

0 comments on commit 4f804b0

Please sign in to comment.