X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=prvm_execprogram.h;h=0d2246ecefa70c435e502ce137537a067b02320d;hb=0be88e0d9213eba81574227fef8bc5bbce7d9732;hp=3439affa82046866184eb6572cea685d464e70ad;hpb=29de7088f191d21a0c7dd5396cb5cead032c2ac2;p=xonotic%2Fdarkplaces.git diff --git a/prvm_execprogram.h b/prvm_execprogram.h index 3439affa..0d2246ec 100644 --- a/prvm_execprogram.h +++ b/prvm_execprogram.h @@ -90,7 +90,7 @@ OPC->_float = !OPA->vector[0] && !OPA->vector[1] && !OPA->vector[2]; break; case OP_NOT_S: - OPC->_float = !OPA->string || !*PR_GetString(OPA->string); + OPC->_float = !OPA->string || !*PRVM_GetString(OPA->string); break; case OP_NOT_FNC: OPC->_float = !OPA->function; @@ -217,7 +217,7 @@ } #endif ed = PRVM_PROG_TO_EDICT(OPA->edict); - OPC->_int = ((eval_t *)((int *)ed->v + OPB->_int))->_int; + OPC->_int = ((prvm_eval_t *)((int *)ed->v + OPB->_int))->_int; break; case OP_LOAD_V: @@ -232,9 +232,9 @@ } #endif ed = PRVM_PROG_TO_EDICT(OPA->edict); - OPC->vector[0] = ((eval_t *)((int *)ed->v + OPB->_int))->vector[0]; - OPC->vector[1] = ((eval_t *)((int *)ed->v + OPB->_int))->vector[1]; - OPC->vector[2] = ((eval_t *)((int *)ed->v + OPB->_int))->vector[2]; + OPC->vector[0] = ((prvm_eval_t *)((int *)ed->v + OPB->_int))->vector[0]; + OPC->vector[1] = ((prvm_eval_t *)((int *)ed->v + OPB->_int))->vector[1]; + OPC->vector[2] = ((prvm_eval_t *)((int *)ed->v + OPB->_int))->vector[2]; break; //================== @@ -309,7 +309,7 @@ startprofile = profile; prog->xstatement = st - prog->statements; ed = PRVM_PROG_TO_EDICT(PRVM_G_INT(prog->self->ofs)); - PRVM_E_FLOAT(ed,PRVM_ED_FindFieldOffset ("nextthink")) = PRVM_G_FLOAT(PRVM_ED_FindGlobal("time")->ofs*4) + 0.1; + PRVM_E_FLOAT(ed,PRVM_ED_FindFieldOffset ("nextthink")) = *prog->time + 0.1; PRVM_E_FLOAT(ed,PRVM_ED_FindFieldOffset ("frame")) = OPA->_float; *(func_t *)((qbyte*)ed->v + PRVM_ED_FindFieldOffset ("think")) = OPB->function; }