Skip to content

Commit

Permalink
SP: Fix symbol error caused by UI functions in cgame
Browse files Browse the repository at this point in the history
These two functions existin SP's exe which is where UI resides there.

I am leaving references to the proper syscalls but since they do not get used when hud is normally loaded in SP (commented out), I think it is best to not call them as it is a global state affecting menus as well.
  • Loading branch information
ensiform committed Dec 8, 2017
1 parent 4090e09 commit eba428e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions code/cgame/cg_consolecmds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ along with this program; if not, see <http://www.gnu.org/licenses/>.
#include "cg_headers.h"

#include "cg_media.h" //just for cgs....
#include "ui/ui_shared.h"

void CG_TargetCommand_f( void );
extern qboolean player_locked;
Expand Down Expand Up @@ -203,8 +202,8 @@ void CG_LoadHud_f( void ) {
hudSet = "ui/jahud.txt";
}

String_Init();
Menu_Reset();
//cgi_UI_String_Init();
//cgi_UI_Menu_Reset();
CG_LoadMenus( hudSet );
}

Expand Down

0 comments on commit eba428e

Please sign in to comment.