1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-07-04 10:42:51 +00:00

rogueviz:: ads:: changed_structure variable

This commit is contained in:
Zeno Rogue 2025-06-22 15:54:59 +02:00
parent 611d305ac5
commit 56767f0d8f

View File

@ -100,6 +100,8 @@ void ads_restart() {
purehookset hooks_pre_ads_start;
bool changed_structure = false;
void run_ads_game_hooks() {
rogueviz::rv_hook(hooks_global_mouseover, 100, generate_mouseovers);
rogueviz::rv_change<color_t>(titlecolor, 0);
@ -111,8 +113,10 @@ void run_ads_game_hooks() {
rogueviz::rv_hook(anims::hooks_anim, 100, replay_animation);
rogueviz::rv_hook(hooks_nextland, 0, ads_nextland);
rogueviz::rv_hook(hooks_music, 100, [] (eLand& l) { l = vctr->land; return false; });
if(!changed_structure) {
specialland = laCrossroads; land_structure = lsNiceWalls;
}
}
void run_size_hooks() {
rogueviz::rv_hook(hooks_scalefactor, 100, [] (geometry_information *i) {