mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 15:21:48 +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);
|
returnValue = VM_GetPlayerInput(arrayIndex, labelNum);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
// no THISACTOR check here because we convert those cases to setvarvar
|
||||||
case STRUCT_ACTORVAR:
|
case STRUCT_ACTORVAR:
|
||||||
|
returnValue = Gv_GetVar(labelNum, arrayIndex, vm.playerNum);
|
||||||
|
break;
|
||||||
case STRUCT_PLAYERVAR:
|
case STRUCT_PLAYERVAR:
|
||||||
// no THISACTOR check here because we convert those cases to setvarvar
|
returnValue = Gv_GetVar(labelNum, vm.spriteNum, arrayIndex);
|
||||||
returnValue = Gv_GetVar(labelNum, arrayIndex, playerNum);
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case STRUCT_SECTOR:
|
case STRUCT_SECTOR:
|
||||||
|
@ -950,11 +952,13 @@ int __fastcall Gv_GetSpecialVarX(int gameVar)
|
||||||
returnValue = VM_GetPlayerInput(arrayIndex, labelNum);
|
returnValue = VM_GetPlayerInput(arrayIndex, labelNum);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
// no THISACTOR check here because we convert those cases to setvarvar
|
||||||
case STRUCT_ACTORVAR:
|
case STRUCT_ACTORVAR:
|
||||||
case STRUCT_PLAYERVAR:
|
|
||||||
// no THISACTOR check here because we convert those cases to setvarvar
|
|
||||||
returnValue = Gv_GetVar(labelNum, arrayIndex, vm.playerNum);
|
returnValue = Gv_GetVar(labelNum, arrayIndex, vm.playerNum);
|
||||||
break;
|
break;
|
||||||
|
case STRUCT_PLAYERVAR:
|
||||||
|
returnValue = Gv_GetVar(labelNum, vm.spriteNum, arrayIndex);
|
||||||
|
break;
|
||||||
|
|
||||||
case STRUCT_SECTOR:
|
case STRUCT_SECTOR:
|
||||||
if (arrayIndexVar == g_thisActorVarID)
|
if (arrayIndexVar == g_thisActorVarID)
|
||||||
|
|
Loading…
Reference in a new issue