| 1040 | } |
| 1041 | |
| 1042 | void enableMask() |
| 1043 | { |
| 1044 | if (!s_playerInfo.itemMask) { return; } |
| 1045 | |
| 1046 | if (!s_batteryPower) |
| 1047 | { |
| 1048 | hud_sendTextMessage(11); |
| 1049 | s_wearingGasmask = JFALSE; |
| 1050 | if (s_gasmaskTask) |
| 1051 | { |
| 1052 | task_free(s_gasmaskTask); |
| 1053 | s_gasmaskTask = nullptr; |
| 1054 | } |
| 1055 | return; |
| 1056 | } |
| 1057 | |
| 1058 | s_wearingGasmask = JTRUE; |
| 1059 | hud_sendTextMessage(20); |
| 1060 | if (!s_gasmaskTask) |
| 1061 | { |
| 1062 | s_gasmaskTask = createSubTask("gasmask", gasmaskTaskFunc); |
| 1063 | } |
| 1064 | } |
| 1065 | |
| 1066 | void cheat_gotoLevel(s32 index) |
| 1067 | { |
no test coverage detected