From acd88377a918439972819d57c9c6e15d695473fc Mon Sep 17 00:00:00 2001 From: Jacob Mandelson Date: Wed, 14 Feb 2024 11:09:39 -0800 Subject: [PATCH] Calculate tidalsize before using it in mouseovers. This way the game doesn't immediately crash when restoring a save in tidal areas. --- help.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/help.cpp b/help.cpp index 240b2f6eb..5b0868ceb 100644 --- a/help.cpp +++ b/help.cpp @@ -881,6 +881,7 @@ EX void describeMouseover() { if(shmup::on) out += " (" + its(c->landparam)+")"; else { + calcTidalPhase(); bool b = c->landparam >= tide[(turncount-1) % tidalsize]; int t = 1; for(; t < 1000 && b == (c->landparam >= tide[(turncount+t-1) % tidalsize]); t++) ;