From 14ddb7b29d4303fa2de2c78c6e666a1e94766a54 Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 19 Apr 2012 09:18:21 +0000 Subject: [PATCH] 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 ::stable-branch::merge=b3a7dceeadcebc770ad668e3bbd23cefd2c6f14d --- prvm_execprogram.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; //================== -- 2.39.2