mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-16 20:27:36 -04:00
d_s_room / d_s_name / d_a_title debug work (#3123)
* d_s_room / d_s_name debug work * camera_class rtti fix * d_a_title debug / handle shield rel changes * fix shield build * fix regressions
This commit is contained in:
@@ -708,13 +708,13 @@ BOOL daNbomb_c::procExplodeInit() {
|
||||
}
|
||||
|
||||
BOOL daNbomb_c::procExplode() {
|
||||
camera_class* camera = dComIfGp_getCamera(0);
|
||||
camera_process_class* camera = dComIfGp_getCamera(0);
|
||||
f32 dist_scale = 0.0f;
|
||||
|
||||
mLightInfluence.mPow = mExplosionStrength * 1500.0f;
|
||||
mWindInfluence.mStrength = mExplosionStrength;
|
||||
|
||||
f32 dist_to_cam = current.pos.abs(camera->lookat.eye);
|
||||
f32 dist_to_cam = current.pos.abs(camera->view.lookat.eye);
|
||||
if (dist_to_cam < 1500.0f) {
|
||||
dist_scale = dist_to_cam / 1500.0f;
|
||||
dist_scale *= dist_scale * dist_scale;
|
||||
|
||||
Reference in New Issue
Block a user