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
1 changed files with 0 additions and 4 deletions

View File

@ -1682,18 +1682,14 @@ static void CG_FeederSelection(float feederID, int index) {
cg.selectedScore = index;
}
}
#endif
#ifdef MISSIONPACK
static float CG_Cvar_Get(const char *cvar) {
char buff[128];
memset(buff, 0, sizeof(buff));
trap_Cvar_VariableStringBuffer(cvar, buff, sizeof(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) {
CG_Text_Paint(x, y, scale, color, text, 0, limit, style);
}