// normal menu names (rest)
#define M_F_TOGGLE "m_toggle"
#define M_F_SHUTDOWN "m_shutdown"
-
+#undef NG_MENU
static char *m_required_func[] = {
M_F_INIT,
M_F_KEYDOWN,
string chr(float ascii)
-float etof(entity ent)
-entity ftoe(float num)
+float itof(intt ent)
+intt ftoi(float num)
perhaps only : Menu : WriteMsg
===============================
/*
========================
-VM_etof
+VM_itof
-float etof(entity ent)
+float itof(intt ent)
========================
*/
-void VM_etof(void)
+void VM_itof(void)
{
- VM_SAFEPARMCOUNT(1, VM_etof);
+ VM_SAFEPARMCOUNT(1, VM_itof);
PRVM_G_FLOAT(OFS_RETURN) = PRVM_G_INT(OFS_PARM0);
}
/*
========================
-VM_ftoe
+VM_itoe
-entity ftoe(float num)
+intt ftoi(float num)
========================
*/
-void VM_ftoe(void)
+void VM_ftoi(void)
{
int ent;
- VM_SAFEPARMCOUNT(1, VM_ftoe);
+ VM_SAFEPARMCOUNT(1, VM_ftoi);
ent = PRVM_G_FLOAT(OFS_PARM0);
if(PRVM_PROG_TO_EDICT(ent)->p.e->free)
VM_M_callfunction
callfunction(...,string function_name)
+Extension: pass
=========
*/
mfunction_t *PRVM_ED_FindFunction (const char *name);
VM_search_getsize,
VM_search_getfilename, // 77
VM_chr,
- VM_etof,
- VM_ftoe,// 80
+ VM_itof,
+ VM_ftoi,// 80
e10, // 90
e10, // 100
e100, // 200
{
if (!(cl.items & (1 << i)))
continue;
- Sbar_DrawWeapon(i + 1, fade, (i == cl.stats[STAT_ACTIVEWEAPON]));
+ Sbar_DrawWeapon(i + 1, fade, ((1<<i) == cl.stats[STAT_ACTIVEWEAPON]));
}
if((cl.items & (1<<12)))
- Sbar_DrawWeapon(0, fade, (cl.stats[STAT_ACTIVEWEAPON] == 12));
+ Sbar_DrawWeapon(0, fade, (cl.stats[STAT_ACTIVEWEAPON] == (1<<12)));
}
//if (!cl.islocalgame)