From dae45b786a18529342f8091f61326d367be7f13b Mon Sep 17 00:00:00 2001 From: Dominic Szablewski Date: Fri, 18 Aug 2023 18:46:34 +0200 Subject: [PATCH] Show correct team logo in team selection menu; close #32 --- src/wipeout/main_menu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wipeout/main_menu.c b/src/wipeout/main_menu.c index d433d47..f74c414 100755 --- a/src/wipeout/main_menu.c +++ b/src/wipeout/main_menu.c @@ -417,7 +417,8 @@ static void button_team_select(menu_t *menu, int data) { } static void page_team_draw(menu_t *menu, int data) { - draw_model(models.teams[data], vec2(0, -0.2), vec3(0, 0, -10000), system_cycle_time()); + int team_model_index = (data + 3) % 4; // models in the prm are shifted by -1 + draw_model(models.teams[team_model_index], vec2(0, -0.2), vec3(0, 0, -10000), system_cycle_time()); draw_model(g.ships[def.teams[data].pilots[0]].model, vec2(0, -0.3), vec3(-700, -800, -1300), system_cycle_time()*1.1); draw_model(g.ships[def.teams[data].pilots[1]].model, vec2(0, -0.3), vec3( 700, -800, -1300), system_cycle_time()*1.2); }