mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
Fixed the hud camera status not updating for freecam (#925)
* Fixed the hud camera status not updating for freecam * Actually, this is better, thanks kingthememer
This commit is contained in:
parent
4fb5375d0d
commit
89366ed5ee
2 changed files with 9 additions and 9 deletions
|
|
@ -4171,6 +4171,15 @@ s32 update_camera_hud_status(struct Camera *c) {
|
|||
if (gCameraMovementFlags & CAM_MOVE_C_UP_MODE) {
|
||||
status |= CAM_STATUS_C_UP;
|
||||
}
|
||||
if (gLakituState.mode == CAMERA_MODE_NEWCAM) {
|
||||
status = gNewCamera.directionLocked ? CAM_STATUS_FIXED : CAM_STATUS_LAKITU;
|
||||
switch (gNewCamera.distanceTargetIndex) {
|
||||
case 0: status |= CAM_STATUS_C_UP; break;
|
||||
case 1: break;
|
||||
case 2: status |= CAM_STATUS_C_DOWN; break;
|
||||
}
|
||||
}
|
||||
|
||||
set_hud_camera_status(status);
|
||||
return status;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -563,15 +563,6 @@ void render_hud_camera_status(void) {
|
|||
return;
|
||||
}
|
||||
|
||||
if (gLakituState.mode == CAMERA_MODE_NEWCAM) {
|
||||
sCameraHUD.status = gNewCamera.directionLocked ? CAM_STATUS_FIXED : CAM_STATUS_LAKITU;
|
||||
switch (gNewCamera.distanceTargetIndex) {
|
||||
case 0: sCameraHUD.status |= CAM_STATUS_C_UP; break;
|
||||
case 1: break;
|
||||
case 2: sCameraHUD.status |= CAM_STATUS_C_DOWN; break;
|
||||
}
|
||||
}
|
||||
|
||||
gSPDisplayList(gDisplayListHead++, dl_hud_img_begin);
|
||||
render_hud_tex_lut(x, y, (*cameraLUT)[GLYPH_CAM_CAMERA]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue