Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //z_play.c:
- //=========================================================================================
- if (CVar_GetS32("gKeepMask", 0) != 0) {
- if (CVar_GetS32("gNoRestrictAge", 0) != 0) {
- if (gSaveContext.fileNum == 1) {
- CVar_SetS32("gMaskNum", player->currentMask);
- } else if (gSaveContext.fileNum == 2) {
- CVar_SetS32("gMaskNum_2", player->currentMask);
- } else if (gSaveContext.fileNum == 3) {
- CVar_SetS32("gMaskNum_3", player->currentMask);
- } else {
- CVar_SetS32("gMaskNum_debug", player->currentMask);
- }
- } else {
- if (gSaveContext.fileNum == 1 && LINK_AGE_IN_YEARS == LINK_IS_CHILD) {
- CVar_SetS32("gMaskNum", player->currentMask);
- } else if (gSaveContext.fileNum == 2 && LINK_AGE_IN_YEARS == LINK_IS_CHILD) {
- CVar_SetS32("gMaskNum_2", player->currentMask);
- } else if (gSaveContext.fileNum == 3 && LINK_AGE_IN_YEARS == LINK_IS_CHILD) {
- CVar_SetS32("gMaskNum_3", player->currentMask);
- } else if (LINK_AGE_IN_YEARS == LINK_IS_CHILD) {
- CVar_SetS32("gMaskNum_debug", player->currentMask);
- }
- }
- }
- //z_player_lib.c
- //=========================================================================================
- if (CVar_GetS32("gKeepMask", 0) != 0) {
- if (CVar_GetS32("gNoRestrictAge", 0) != 0) {
- if (gSaveContext.fileNum == 1) {
- this->currentMask = CVar_GetS32("gMaskNum", 0);
- } else if (gSaveContext.fileNum == 2) {
- this->currentMask = CVar_GetS32("gMaskNum_2", 0);
- } else if (gSaveContext.fileNum == 3) {
- this->currentMask = CVar_GetS32("gMaskNum_3", 0);
- } else {
- this->currentMask = CVar_GetS32("gMaskNum_debug", 0);
- }
- } else {
- if (gSaveContext.fileNum == 1 && LINK_AGE_IN_YEARS == LINK_IS_CHILD) {
- this->currentMask = CVar_GetS32("gMaskNum", 0);
- } else if (gSaveContext.fileNum == 2 && LINK_AGE_IN_YEARS == LINK_IS_CHILD) {
- this->currentMask = CVar_GetS32("gMaskNum_2", 0);
- } else if (gSaveContext.fileNum == 3 && LINK_AGE_IN_YEARS == LINK_IS_CHILD) {
- this->currentMask = CVar_GetS32("gMaskNum_3", 0);
- } else if (gSaveContext.fileNum != 1 && gSaveContext.fileNum != 2 && gSaveContext.fileNum != 3 && LINK_AGE_IN_YEARS == LINK_IS_CHILD) {
- this->currentMask = CVar_GetS32("gMaskNum_debug", 0);
- } else if (LINK_AGE_IN_YEARS != LINK_IS_CHILD) {
- this->currentMask = PLAYER_MASK_NONE;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement