From 0052edae47d1e6ae613497c524719eff5838f52a Mon Sep 17 00:00:00 2001 From: Aki Date: Fri, 18 Feb 2022 23:54:30 +0100 Subject: Switched to use GetIntance for Game instead of static methods --- Stars45/Shot.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Stars45/Shot.cpp') diff --git a/Stars45/Shot.cpp b/Stars45/Shot.cpp index 87abbb8..7878569 100644 --- a/Stars45/Shot.cpp +++ b/Stars45/Shot.cpp @@ -281,7 +281,7 @@ Shot::ExecFrame(double seconds) offset -= (float) (seconds * 10); } - if (Game::Paused()) + if (Game::GetInstance()->Paused()) return; if (beam) { @@ -504,7 +504,7 @@ Shot::Damage() const fade = (design->length - len) / (design->length - design->min_range); } - damage = base_damage * charge * fade * Game::FrameTime(); + damage = base_damage * charge * fade * Game::GetInstance()->FrameTime(); } // energy wep damage based on time: -- cgit v1.1