Merge pull request #256 from WolfWings/patch-4

...too much MISSIONPACK ifdeffery.
This commit is contained in:
Zack Middleton 2017-05-24 13:44:35 -05:00 committed by GitHub
commit 3b0a862290

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);
} }