git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7900
d7cf8633-e32d-0410-b094-
e92efae38249
prog->globals.client->time = cl.time;
PRVM_G_FLOAT(OFS_PARM0) = !down; // 0 is down, 1 is up
PRVM_G_FLOAT(OFS_PARM1) = key;
- if ((val = PRVM_GLOBALFIELDVALUE(prog->globaloffsets.input_ascii)))
- val->_float = ascii;
+ PRVM_G_FLOAT(OFS_PARM2) = ascii;
PRVM_ExecuteProgram(prog->funcoffsets.CSQC_InputEvent, "QC function CSQC_InputEvent is missing");
r = CSQC_RETURNVAL;
}
int dmg_origin; // csqc
int sb_showscores; // csqc
int drawfont; // csqc / menu
- int input_ascii; // csqc
}
prvm_prog_globaloffsets_t;
prog->globaloffsets.dmg_origin = PRVM_ED_FindGlobalOffset("dmg_origin");
prog->globaloffsets.sb_showscores = PRVM_ED_FindGlobalOffset("sb_showscores");
prog->globaloffsets.drawfont = PRVM_ED_FindGlobalOffset("drawfont");
- prog->globaloffsets.input_ascii = PRVM_ED_FindGlobalOffset("input_ascii");
// menu qc only uses some functions, nothing else
prog->funcoffsets.m_draw = PRVM_ED_FindFunctionOffset("m_draw");