CON: make the 'palette' player member actually return the player's palette ID

instead of -1. Setting is still only through 'setgamepalette'.

git-svn-id: https://svn.eduke32.com/eduke32@2226 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2011-12-29 14:26:30 +00:00
parent 8ec15480c0
commit afbffe5c4a

View file

@ -1455,6 +1455,8 @@ static void __fastcall VM_GetPlayer(register int32_t lVar1, register int32_t lLa
Gv_SetVarX(lVar2, (g_player[iPlayer].ps->gotweapon & (1<<lParm2)) != 0); return; Gv_SetVarX(lVar2, (g_player[iPlayer].ps->gotweapon & (1<<lParm2)) != 0); return;
case PLAYER_REFRESH_INVENTORY: case PLAYER_REFRESH_INVENTORY:
Gv_SetVarX(lVar2, g_player[iPlayer].ps->refresh_inventory); return; Gv_SetVarX(lVar2, g_player[iPlayer].ps->refresh_inventory); return;
case PLAYER_PALETTE: // no set
Gv_SetVarX(lVar2, g_player[iPlayer].ps->palette); return;
case PLAYER_TOGGLE_KEY_FLAG: case PLAYER_TOGGLE_KEY_FLAG:
Gv_SetVarX(lVar2, g_player[iPlayer].ps->toggle_key_flag); return; Gv_SetVarX(lVar2, g_player[iPlayer].ps->toggle_key_flag); return;
case PLAYER_KNUCKLE_INCS: case PLAYER_KNUCKLE_INCS: