...too much MISSIONPACK ifdeffery.

This commit is contained in:
Wolf 2017-02-02 10:28:46 -06:00 committed by GitHub
parent 468da0fabc
commit 411d20bec6

View file

@ -1682,18 +1682,14 @@ static void CG_FeederSelection(float feederID, int index) {
cg.selectedScore = index; cg.selectedScore = index;
} }
} }
#endif
#ifdef MISSIONPACK
static float CG_Cvar_Get(const char *cvar) { static float CG_Cvar_Get(const char *cvar) {
char buff[128]; char buff[128];
memset(buff, 0, sizeof(buff)); memset(buff, 0, sizeof(buff));
trap_Cvar_VariableStringBuffer(cvar, buff, sizeof(buff)); trap_Cvar_VariableStringBuffer(cvar, buff, sizeof(buff));
return atof(buff); return atof(buff);
} }
#endif
#ifdef MISSIONPACK
void CG_Text_PaintWithCursor(float x, float y, float scale, vec4_t color, const char *text, int cursorPos, char cursor, int limit, int style) { void CG_Text_PaintWithCursor(float x, float y, float scale, vec4_t color, const char *text, int cursorPos, char cursor, int limit, int style) {
CG_Text_Paint(x, y, scale, color, text, 0, limit, style); CG_Text_Paint(x, y, scale, color, text, 0, limit, style);
} }