diff options
| author | fig02 <fig02srl@gmail.com> | 2024-12-08 14:56:01 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-08 14:56:01 -0500 |
| commit | bda5e94ded7792308a3b48ccfb09ec38779814ef (patch) | |
| tree | cf86c3f08d6bc463f02d41f832b50052352d1891 /src/code/z_play.c | |
| parent | 7a0a90b16a4dc73ee63d43774aec562d57a9c444 (diff) | |
Document Player Params (#2307)
* document player params
* better bgcamindex comment
* cant use -1 for condition
* fix match
* define for default bgcam
* doesnt work
* matches
* better comment
Diffstat (limited to 'src/code/z_play.c')
| -rw-r--r-- | src/code/z_play.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/code/z_play.c b/src/code/z_play.c index dc37ab27a..068bc6ee8 100644 --- a/src/code/z_play.c +++ b/src/code/z_play.c @@ -483,8 +483,9 @@ void Play_Init(GameState* thisx) { Camera_InitDataUsingPlayer(&this->mainCamera, player); Camera_RequestMode(&this->mainCamera, CAM_MODE_NORMAL); - playerStartBgCamIndex = PARAMS_GET_U(player->actor.params, 0, 8); - if (playerStartBgCamIndex != 0xFF) { + playerStartBgCamIndex = PLAYER_GET_START_BG_CAM_INDEX(&player->actor); + + if (playerStartBgCamIndex != PLAYER_START_BG_CAM_DEFAULT) { PRINTF("player has start camera ID (" VT_FGCOL(BLUE) "%d" VT_RST ")\n", playerStartBgCamIndex); Camera_RequestBgCam(&this->mainCamera, playerStartBgCamIndex); } @@ -1901,7 +1902,7 @@ void Play_LoadToLastEntrance(PlayState* this) { } void Play_TriggerRespawn(PlayState* this) { - Play_SetupRespawnPoint(this, RESPAWN_MODE_DOWN, 0xDFF); + Play_SetupRespawnPoint(this, RESPAWN_MODE_DOWN, PLAYER_PARAMS(PLAYER_START_MODE_IDLE, PLAYER_START_BG_CAM_DEFAULT)); Play_LoadToLastEntrance(this); } |
