1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-19 11:44:48 +00:00

Merge pull request #372 from jlmjlm/tidefix2

Check tide before drawing cells.
This commit is contained in:
Zeno Rogue 2024-05-09 20:42:03 +02:00 committed by GitHub
commit 215be1ea17
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 2 deletions

View File

@ -2856,6 +2856,8 @@ void celldrawer::draw() {
cells_drawn++;
checkTide(c);
#if CAP_TEXTURE
if(texture::saving) {
texture::config.apply(c, V, 0xFFFFFFFF);

View File

@ -895,7 +895,6 @@ EX void describeMouseover() {
if(shmup::on)
out += " (" + its(c->landparam)+")";
else {
calcTidalPhase();
bool b = c->landparam >= tide[turncount % tidalsize];
int t = 1;
for(; t < 1000 && b == (c->landparam >= tide[(turncount+t) % tidalsize]); t++) ;

View File

@ -429,7 +429,8 @@ EX void initgame() {
if(vid.use_smart_range == 2) vid.use_smart_range = 1;
}
if(!allowIncreasedSight()) vid.use_smart_range = 0;
callhooks(hooks_post_initgame);
calcTidalPhase();
callhooks(hooks_post_initgame);
}
bool havesave = true;