Skip to content

Commit

Permalink
Merge pull request #127 from NeonKnightOA/teamorders-fix
Browse files Browse the repository at this point in the history
Fix: Team Orders in Classic UI now shows proper team orders
  • Loading branch information
NeonKnightOA authored Mar 12, 2024
2 parents 5237c19 + 98d0fe9 commit e526dba
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions code/q3_ui/ui_teamorders.c
Original file line number Diff line number Diff line change
Expand Up @@ -360,13 +360,13 @@ static void UI_TeamOrdersMenu_ListEvent( void *ptr, int event )
if( UI_UsesTeamFlags(teamOrdersMenuInfo.gametype) && !UI_UsesTheWhiteFlag(teamOrdersMenuInfo.gametype) ) {
UI_TeamOrdersMenu_SetList( ID_LIST_CTF_ORDERS );
}
if( UI_UsesTeamFlags(teamOrdersMenuInfo.gametype) && UI_UsesTheWhiteFlag(teamOrdersMenuInfo.gametype) ) {
else if( UI_UsesTeamFlags(teamOrdersMenuInfo.gametype) && UI_UsesTheWhiteFlag(teamOrdersMenuInfo.gametype) ) {
UI_TeamOrdersMenu_SetList( ID_LIST_CTF1F_ORDERS );
}
if( teamOrdersMenuInfo.gametype == GT_HARVESTER || teamOrdersMenuInfo.gametype == GT_OBELISK ) {
else if( teamOrdersMenuInfo.gametype == GT_HARVESTER || teamOrdersMenuInfo.gametype == GT_OBELISK ) {
UI_TeamOrdersMenu_SetList( ID_LIST_BASE_ORDERS );
}
if( teamOrdersMenuInfo.gametype == GT_DOUBLE_D ) {
else if( teamOrdersMenuInfo.gametype == GT_DOUBLE_D ) {
UI_TeamOrdersMenu_SetList( ID_LIST_DD_ORDERS );
}
else {
Expand All @@ -379,18 +379,18 @@ static void UI_TeamOrdersMenu_ListEvent( void *ptr, int event )
if( id == ID_LIST_CTF_ORDERS ) {
Com_sprintf( message, sizeof(message), ctfMessages[selection], teamOrdersMenuInfo.botNames[teamOrdersMenuInfo.selectedBot] );
}
if( id == ID_LIST_CTF1F_ORDERS ) {
else if( id == ID_LIST_CTF1F_ORDERS ) {
Com_sprintf( message, sizeof(message), ctf1fMessages[selection], teamOrdersMenuInfo.botNames[teamOrdersMenuInfo.selectedBot] );
}
if( id == ID_LIST_BASE_ORDERS ) {
else if( id == ID_LIST_BASE_ORDERS ) {
Com_sprintf( message, sizeof(message), baseMessages[selection], teamOrdersMenuInfo.botNames[teamOrdersMenuInfo.selectedBot] );
}
if( id == ID_LIST_TEAM_ORDERS ) {
Com_sprintf( message, sizeof(message), teamMessages[selection], teamOrdersMenuInfo.botNames[teamOrdersMenuInfo.selectedBot] );
}
if( id == ID_LIST_DD_ORDERS ) {
else if( id == ID_LIST_DD_ORDERS ) {
Com_sprintf( message, sizeof(message), ddMessages[selection], teamOrdersMenuInfo.botNames[teamOrdersMenuInfo.selectedBot] );
}
else {
Com_sprintf( message, sizeof(message), teamMessages[selection], teamOrdersMenuInfo.botNames[teamOrdersMenuInfo.selectedBot] );
}

trap_Cmd_ExecuteText( EXEC_APPEND, va( "say_team \"%s\"\n", message ) );
UI_PopMenu();
Expand Down

0 comments on commit e526dba

Please sign in to comment.