From e32cd4422a565ca6a64eece1deaceed063390833 Mon Sep 17 00:00:00 2001 From: ManDude <7569514+ManDude@users.noreply.github.com> Date: Tue, 21 Jun 2022 01:06:29 +0100 Subject: [PATCH] better particle hacks --- goal_src/engine/sparticle/sparticle-launcher.gc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/goal_src/engine/sparticle/sparticle-launcher.gc b/goal_src/engine/sparticle/sparticle-launcher.gc index ef0d96367c..5799419850 100644 --- a/goal_src/engine/sparticle/sparticle-launcher.gc +++ b/goal_src/engine/sparticle/sparticle-launcher.gc @@ -938,7 +938,8 @@ (if (-> *pc-settings* ps2-parts?) ;; pc port : launchers have larger bsphere if you have ps2 parts off (sphere-in-view-frustum? (the-as sphere gp-1)) - (sphere-in-view-frustum? (the-as sphere (let ((bsph (new-stack-vector0))) (vector-copy! bsph gp-1) (*! (-> bsph w) 4.0) bsph)))) + (sphere-in-view-frustum? (the-as sphere (begin (*! (-> gp-1 w) 8.0) gp-1))) + ) ) ) ) @@ -990,10 +991,10 @@ (set! f30-0 0.0) ) - ;; pc hack for more particles. + ;; if we have ps2 particles off, say we're at the camera (with-pc (if (not (-> *pc-settings* ps2-parts?)) - (/! f30-0 256.0))) + (set! f30-0 0.0))) ;; loop over particles in the group. (let ((s2-1 (-> obj length)))