Skip to content

Commit

Permalink
typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nukeulater committed Dec 22, 2024
1 parent b40cca8 commit 1e60e04
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion xlive/Blam/Engine/game/game_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ s_game_engine_globals* game_engine_globals_get(void)
return *Memory::GetAddress<s_game_engine_globals**>(0x4BF8F8, 0x4EA028);
}

s_simulation_player_neddebug_data* game_engine_get_netdebug_data(datum player_index)
s_simulation_player_netdebug_data* game_engine_get_netdebug_data(datum player_index)
{
return &game_engine_globals_get()->netdebug_data[DATUM_INDEX_TO_ABSOLUTE_INDEX(player_index)];
}
Expand Down
8 changes: 4 additions & 4 deletions xlive/Blam/Engine/game/game_engine.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ struct s_game_engine_global_player_info
};
ASSERT_STRUCT_SIZE(s_game_engine_global_player_info, 24);

struct s_simulation_player_neddebug_data
struct s_simulation_player_netdebug_data
{
int32 field_0;
int32 field_4;
Expand All @@ -163,7 +163,7 @@ struct s_simulation_player_neddebug_data
int16 throughput;
int16 pck_loss;
};
ASSERT_STRUCT_SIZE(s_simulation_player_neddebug_data, 16);
ASSERT_STRUCT_SIZE(s_simulation_player_netdebug_data, 16);

struct s_game_engine_globals
{
Expand All @@ -189,7 +189,7 @@ struct s_game_engine_globals
c_game_statborg game_statborg;
s_game_engine_global_player_info player_info[k_maximum_players];
uint32 ticks;
s_simulation_player_neddebug_data netdebug_data[k_maximum_players];
s_simulation_player_netdebug_data netdebug_data[k_maximum_players];
uint8 gap81C[1064];
int32 field_C44;
uint8 gap_C48[12];
Expand Down Expand Up @@ -261,7 +261,7 @@ c_game_engine* current_game_engine();

s_game_engine_globals* game_engine_globals_get(void);

s_simulation_player_neddebug_data* game_engine_get_netdebug_data(datum player_index);
s_simulation_player_netdebug_data* game_engine_get_netdebug_data(datum player_index);

bool __cdecl game_engine_get_change_colors(s_player_profile* player_profile, e_game_team team_index, real_rgb_color* change_colors);

Expand Down
4 changes: 2 additions & 2 deletions xlive/Blam/Engine/render/render_cartographer_ingame_ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,8 @@ void render_netdebug_text(void)
c_network_session* session;
if (NetworkSession::GetActiveNetworkSession(&session))
{
s_simulation_player_neddebug_data netdebug_data_default{};
s_simulation_player_neddebug_data* netdebug_data = &netdebug_data_default;
s_simulation_player_netdebug_data netdebug_data_default{};
s_simulation_player_netdebug_data* netdebug_data = &netdebug_data_default;
if (!session->local_state_session_host())
{
s_membership_peer* membership_peer = session->get_peer_membership(session->get_local_peer_index());
Expand Down

0 comments on commit 1e60e04

Please sign in to comment.