mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
CON: Fix playervar quick structure access.
git-svn-id: https://svn.eduke32.com/eduke32@6404 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
d414d15b52
commit
8c5fe26b14
1 changed files with 8 additions and 4 deletions
|
@ -754,10 +754,12 @@ special:
|
|||
returnValue = VM_GetPlayerInput(arrayIndex, labelNum);
|
||||
break;
|
||||
|
||||
case STRUCT_ACTORVAR:
|
||||
case STRUCT_PLAYERVAR:
|
||||
// no THISACTOR check here because we convert those cases to setvarvar
|
||||
returnValue = Gv_GetVar(labelNum, arrayIndex, playerNum);
|
||||
case STRUCT_ACTORVAR:
|
||||
returnValue = Gv_GetVar(labelNum, arrayIndex, vm.playerNum);
|
||||
break;
|
||||
case STRUCT_PLAYERVAR:
|
||||
returnValue = Gv_GetVar(labelNum, vm.spriteNum, arrayIndex);
|
||||
break;
|
||||
|
||||
case STRUCT_SECTOR:
|
||||
|
@ -950,11 +952,13 @@ int __fastcall Gv_GetSpecialVarX(int gameVar)
|
|||
returnValue = VM_GetPlayerInput(arrayIndex, labelNum);
|
||||
break;
|
||||
|
||||
case STRUCT_ACTORVAR:
|
||||
case STRUCT_PLAYERVAR:
|
||||
// no THISACTOR check here because we convert those cases to setvarvar
|
||||
case STRUCT_ACTORVAR:
|
||||
returnValue = Gv_GetVar(labelNum, arrayIndex, vm.playerNum);
|
||||
break;
|
||||
case STRUCT_PLAYERVAR:
|
||||
returnValue = Gv_GetVar(labelNum, vm.spriteNum, arrayIndex);
|
||||
break;
|
||||
|
||||
case STRUCT_SECTOR:
|
||||
if (arrayIndexVar == g_thisActorVarID)
|
||||
|
|
Loading…
Reference in a new issue