(- hopefully it is a bug): ParseEpair was accessing the globals arrays
instead of writing an offset directly into the value.
-Removed the VM_CheckEmptyString from VM_drawstring.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4798
d7cf8633-e32d-0410-b094-
e92efae38249
Con_DPrintf("ED_ParseEpair: Can't find field %s\n", s);
return false;
}
- val->_int = G_INT(def->ofs);
+ //val->_int = G_INT(def->ofs); AK Please check this - seems to be an org. quake bug
+ val->_int = def->ofs;
break;
case ev_function:
return;
}
- VM_CheckEmptyString(string);
+ //VM_CheckEmptyString(string); Why should it be checked - perhaps the menu wants to the precolored letters, too?
pos = PRVM_G_VECTOR(OFS_PARM0);
scale = PRVM_G_VECTOR(OFS_PARM2);
Con_DPrintf("PRVM_ED_ParseEpair: Can't find field %s in %s\n", s, PRVM_NAME);
return false;
}
- val->_int = PRVM_G_INT(def->ofs);
+ val->_int = def->ofs;
break;
case ev_function:
prog->self = PRVM_ED_FindGlobal("self");
- if(PRVM_ED_FindGlobal("time"))
+ if( PRVM_ED_FindGlobal("time") && PRVM_ED_FindGlobal("time")->type == ev_float )
prog->time = &PRVM_G_FLOAT(PRVM_ED_FindGlobal("time")->ofs);
if(PRVM_ED_FindField ("chain"))