summaryrefslogtreecommitdiff
path: root/src/code/z_player_lib.c
diff options
context:
space:
mode:
authorfig02 <fig02srl@gmail.com>2024-10-10 12:56:39 -0400
committerGitHub <noreply@github.com>2024-10-10 12:56:39 -0400
commitfdf502dcdd55657a63d641a7a52628542eed277f (patch)
treea97154f348d04d8e76b18e897da30aafb9c7ce5f /src/code/z_player_lib.c
parent869bae342932cae89e3bb7ac8db7d2f736013f96 (diff)
Document `Player_Action_Idle` (#2266)
* document Player_Action_Idle * Player_DecelerateToZero * cleanup R_RUN_SPEED_LIMIT usages * format * typo * reorder reg * shake timer is used for fall damage * comment on shake timer only being processed in one place * format and edit comment * shakeTimer -> fallDamageStunTimer
Diffstat (limited to 'src/code/z_player_lib.c')
-rw-r--r--src/code/z_player_lib.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/code/z_player_lib.c b/src/code/z_player_lib.c
index d7ec54bd0..1699dd200 100644
--- a/src/code/z_player_lib.c
+++ b/src/code/z_player_lib.c
@@ -24,8 +24,8 @@ s16 sBootData[PLAYER_BOOTS_MAX][17] = {
FRAMERATE_CONST(270, 324), // REG(36)
600, // REG(37)
FRAMERATE_CONST(350, 420), // REG(38)
- 800, // REG(43)
- 600, // REG(45)
+ 800, // R_DECELERATE_RATE
+ 600, // R_RUN_SPEED_LIMIT
-100, // REG(68)
600, // REG(69)
590, // IREG(66)
@@ -44,8 +44,8 @@ s16 sBootData[PLAYER_BOOTS_MAX][17] = {
FRAMERATE_CONST(270, 324), // REG(36)
1000, // REG(37)
FRAMERATE_CONST(0, 0), // REG(38)
- 800, // REG(43)
- 300, // REG(45)
+ 800, // R_DECELERATE_RATE
+ 300, // R_RUN_SPEED_LIMIT
-160, // REG(68)
600, // REG(69)
590, // IREG(66)
@@ -64,8 +64,8 @@ s16 sBootData[PLAYER_BOOTS_MAX][17] = {
FRAMERATE_CONST(270, 324), // REG(36)
600, // REG(37)
FRAMERATE_CONST(600, 720), // REG(38)
- 800, // REG(43)
- 550, // REG(45)
+ 800, // R_DECELERATE_RATE
+ 550, // R_RUN_SPEED_LIMIT
-100, // REG(68)
600, // REG(69)
540, // IREG(66)
@@ -84,8 +84,8 @@ s16 sBootData[PLAYER_BOOTS_MAX][17] = {
FRAMERATE_CONST(400, 480), // REG(36)
0, // REG(37)
FRAMERATE_CONST(300, 360), // REG(38)
- 800, // REG(43)
- 500, // REG(45)
+ 800, // R_DECELERATE_RATE
+ 500, // R_RUN_SPEED_LIMIT
-100, // REG(68)
600, // REG(69)
590, // IREG(66)
@@ -104,8 +104,8 @@ s16 sBootData[PLAYER_BOOTS_MAX][17] = {
FRAMERATE_CONST(270, 324), // REG(36)
600, // REG(37)
FRAMERATE_CONST(50, 60), // REG(38)
- 800, // REG(43)
- 550, // REG(45)
+ 800, // R_DECELERATE_RATE
+ 550, // R_RUN_SPEED_LIMIT
-40, // REG(68)
400, // REG(69)
540, // IREG(66)
@@ -124,8 +124,8 @@ s16 sBootData[PLAYER_BOOTS_MAX][17] = {
FRAMERATE_CONST(400, 480), // REG(36)
800, // REG(37)
FRAMERATE_CONST(400, 480), // REG(38)
- 800, // REG(43)
- 550, // REG(45)
+ 800, // R_DECELERATE_RATE
+ 550, // R_RUN_SPEED_LIMIT
-100, // REG(68)
600, // REG(69)
540, // IREG(66)
@@ -589,8 +589,8 @@ void Player_SetBootData(PlayState* play, Player* this) {
REG(36) = bootRegs[5];
REG(37) = bootRegs[6];
REG(38) = bootRegs[7];
- REG(43) = bootRegs[8];
- REG(45) = bootRegs[9];
+ R_DECELERATE_RATE = bootRegs[8];
+ R_RUN_SPEED_LIMIT = bootRegs[9];
REG(68) = bootRegs[10];
REG(69) = bootRegs[11];
IREG(66) = bootRegs[12];
@@ -600,7 +600,7 @@ void Player_SetBootData(PlayState* play, Player* this) {
MREG(95) = bootRegs[16];
if (play->roomCtx.curRoom.behaviorType1 == ROOM_BEHAVIOR_TYPE1_2) {
- REG(45) = 500;
+ R_RUN_SPEED_LIMIT = 500;
}
}