diff options
| author | engineer124 <47598039+engineer124@users.noreply.github.com> | 2024-11-12 11:46:21 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-11 16:46:21 -0800 |
| commit | 4663beda1a3e22788ea4e9218c40147022fd3936 (patch) | |
| tree | 19a4fd815a35b82ac7ee25f8c63e86f9ca917fd4 /src/code/z_player_lib.c | |
| parent | 4337c2a4f29034a576c5fbcef00f27e468df9579 (diff) | |
Document Room Type (#1740)
* roomType
* cleanup
Diffstat (limited to 'src/code/z_player_lib.c')
| -rw-r--r-- | src/code/z_player_lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/code/z_player_lib.c b/src/code/z_player_lib.c index 5f799e822..5e51a9903 100644 --- a/src/code/z_player_lib.c +++ b/src/code/z_player_lib.c @@ -631,7 +631,7 @@ void func_80123140(PlayState* play, Player* player) { IREG(69) = bootRegs[16]; MREG(95) = bootRegs[17]; - if (play->roomCtx.curRoom.behaviorType1 == ROOM_BEHAVIOR_TYPE1_2) { + if (play->roomCtx.curRoom.type == ROOM_TYPE_INDOORS) { R_RUN_SPEED_LIMIT = 500; } @@ -1706,7 +1706,7 @@ s32 Player_GetEnvironmentalHazard(PlayState* play) { EnvHazardTextTriggerEntry* triggerEntry; s32 envHazard; - if (play->roomCtx.curRoom.behaviorType2 == ROOM_BEHAVIOR_TYPE2_HOT) { + if (play->roomCtx.curRoom.environmentType == ROOM_ENV_HOT) { envHazard = PLAYER_ENV_HAZARD_HOTROOM - 1; } else if ((player->transformation != PLAYER_FORM_ZORA) && (player->underwaterTimer > 80)) { envHazard = PLAYER_ENV_HAZARD_UNDERWATER_FREE - 1; |
