1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-10 20:27:39 +00:00

Merge pull request #359 from jlmjlm/tidefix1

Calculate tidalsize before using it in mouseovers.
This commit is contained in:
Zeno Rogue
2024-02-19 14:22:49 +01:00
committed by GitHub

View File

@@ -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++) ;