mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-22 06:13:45 -07:00
Modified so that when you enter a new scene, you keep your mask on :D
This commit is contained in:
parent
5430c0adb6
commit
02f5fae219
3 changed files with 4 additions and 0 deletions
|
@ -31,6 +31,7 @@ void BootCommands_Init()
|
|||
CVar_RegisterS32("gNewDrops", 0);
|
||||
CVar_RegisterS32("gVisualAgony", 0);
|
||||
CVar_RegisterS32("gLanguages", 0); //0 = English / 1 = German / 2 = French
|
||||
CVar_RegisterS32("gMaskNum", 0);
|
||||
}
|
||||
|
||||
//void BootCommands_ParseBootArgs(char* str)
|
||||
|
|
|
@ -154,6 +154,8 @@ void Gameplay_Destroy(GameState* thisx) {
|
|||
GlobalContext* globalCtx = (GlobalContext*)thisx;
|
||||
Player* player = GET_PLAYER(globalCtx);
|
||||
|
||||
CVar_SetS32("gMaskNum", player->currentMask);
|
||||
|
||||
globalCtx->state.gfxCtx->callback = NULL;
|
||||
globalCtx->state.gfxCtx->callbackParam = 0;
|
||||
SREG(91) = 0;
|
||||
|
|
|
@ -412,6 +412,7 @@ void func_8008EC70(Player* this) {
|
|||
|
||||
void Player_SetEquipmentData(GlobalContext* globalCtx, Player* this) {
|
||||
if (this->csMode != 0x56) {
|
||||
this->currentMask = CVar_GetS32("gMaskNum", 0);
|
||||
this->currentShield = CUR_EQUIP_VALUE(EQUIP_SHIELD);
|
||||
this->currentTunic = CUR_EQUIP_VALUE(EQUIP_TUNIC) - 1;
|
||||
this->currentBoots = CUR_EQUIP_VALUE(EQUIP_BOOTS) - 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue