From: havoc Date: Thu, 19 Apr 2012 09:18:21 +0000 (+0000) Subject: fix severe bugs with the PRVM_64 support, which affected both modes of X-Git-Tag: xonotic-v0.8.0~96^2~239 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b3a7dceeadcebc770ad668e3bbd23cefd2c6f14d;p=xonotic%2Fdarkplaces.git fix severe bugs with the PRVM_64 support, which affected both modes of operation (PRVM_64 defined or not) - the OP_LOAD_ operations were converting between float and int unintentionally git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11799 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/prvm_execprogram.h b/prvm_execprogram.h index 82f09d12..c787e6fe 100644 --- a/prvm_execprogram.h +++ b/prvm_execprogram.h @@ -237,7 +237,7 @@ goto cleanup; } ed = PRVM_PROG_TO_EDICT(OPA->edict); - OPC->_int = ((prvm_eval_t *)(ed->fields.fp + OPB->_int))->_int; + OPC->_int = ((prvm_eval_t *)(ed->fields.ip + OPB->_int))->_int; break; case OP_LOAD_V: @@ -254,9 +254,9 @@ goto cleanup; } ed = PRVM_PROG_TO_EDICT(OPA->edict); - OPC->ivector[0] = ((prvm_eval_t *)(ed->fields.fp + OPB->_int))->ivector[0]; - OPC->ivector[1] = ((prvm_eval_t *)(ed->fields.fp + OPB->_int))->ivector[1]; - OPC->ivector[2] = ((prvm_eval_t *)(ed->fields.fp + OPB->_int))->ivector[2]; + OPC->ivector[0] = ((prvm_eval_t *)(ed->fields.ip + OPB->_int))->ivector[0]; + OPC->ivector[1] = ((prvm_eval_t *)(ed->fields.ip + OPB->_int))->ivector[1]; + OPC->ivector[2] = ((prvm_eval_t *)(ed->fields.ip + OPB->_int))->ivector[2]; break; //==================