summaryrefslogtreecommitdiff
path: root/src/object/lightRay.c
diff options
context:
space:
mode:
authorTal Hayon <talhayon1@gmail.com>2022-08-06 15:21:41 +0300
committerTal Hayon <talhayon1@gmail.com>2022-08-06 15:21:41 +0300
commit18ef0d34b4ce9801ae26449e3a32ac9d985e43de (patch)
tree38faf63b8f005c8860746273cae12b101d7e8f57 /src/object/lightRay.c
parent64c2f2476d3090856bfa450f06b19b87709a8170 (diff)
Document various fields and functions
Diffstat (limited to 'src/object/lightRay.c')
-rw-r--r--src/object/lightRay.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/object/lightRay.c b/src/object/lightRay.c
index 4aae9aac..c353a862 100644
--- a/src/object/lightRay.c
+++ b/src/object/lightRay.c
@@ -94,14 +94,14 @@ void sub_0809B97C(LightRayEntity* this, u32 param_2) {
if (tmp1 < 0) {
tmp1 = 0;
}
- if (0xf0 < tmp1) {
- tmp1 = 0xf0;
+ if (DISPLAY_WIDTH < tmp1) {
+ tmp1 = DISPLAY_WIDTH;
}
if (tmp2 < 0) {
tmp2 = 0;
}
- if (0xf0 < tmp2) {
- tmp2 = 0xf0;
+ if (DISPLAY_WIDTH < tmp2) {
+ tmp2 = DISPLAY_WIDTH;
}
gScreen.controls.window0HorizontalDimensions = (tmp1 << 8) | tmp2;
}
@@ -124,8 +124,8 @@ void LightRay_Type1(LightRayEntity* this) {
}
gPlayerEntity.animationState = tmp;
gScreen.lcd.displayControl = (gScreen.lcd.displayControl & 0xbfff) | 0x2000;
- gScreen.controls.window0HorizontalDimensions = 0xf0;
- gScreen.controls.window0VerticalDimensions = 0xa0;
+ gScreen.controls.window0HorizontalDimensions = DISPLAY_WIDTH;
+ gScreen.controls.window0VerticalDimensions = DISPLAY_HEIGHT;
break;
case 1:
if (super->timer != 0) {