From 1e60e04b05e5f9f73f183d39bc53c5bebe240884 Mon Sep 17 00:00:00 2001 From: nukeulater <18323679+nukeulater@users.noreply.github.com> Date: Sun, 22 Dec 2024 20:21:26 +0200 Subject: [PATCH] typo fix --- xlive/Blam/Engine/game/game_engine.cpp | 2 +- xlive/Blam/Engine/game/game_engine.h | 8 ++++---- .../Blam/Engine/render/render_cartographer_ingame_ui.cpp | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/xlive/Blam/Engine/game/game_engine.cpp b/xlive/Blam/Engine/game/game_engine.cpp index 1f6f57768..c342b0e1b 100644 --- a/xlive/Blam/Engine/game/game_engine.cpp +++ b/xlive/Blam/Engine/game/game_engine.cpp @@ -16,7 +16,7 @@ s_game_engine_globals* game_engine_globals_get(void) return *Memory::GetAddress(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)]; } diff --git a/xlive/Blam/Engine/game/game_engine.h b/xlive/Blam/Engine/game/game_engine.h index 4ab7a4420..0a52b7338 100644 --- a/xlive/Blam/Engine/game/game_engine.h +++ b/xlive/Blam/Engine/game/game_engine.h @@ -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; @@ -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 { @@ -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]; @@ -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); diff --git a/xlive/Blam/Engine/render/render_cartographer_ingame_ui.cpp b/xlive/Blam/Engine/render/render_cartographer_ingame_ui.cpp index 63922eeb1..6e4b8a270 100644 --- a/xlive/Blam/Engine/render/render_cartographer_ingame_ui.cpp +++ b/xlive/Blam/Engine/render/render_cartographer_ingame_ui.cpp @@ -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());