mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-08-29 00:42:19 +00:00
rogueviz::ads:: fixefd the turret slide
This commit is contained in:
parent
9521a01999
commit
343fb4c826
@ -98,6 +98,8 @@ void ads_restart() {
|
||||
switch_spacetime_to(b);
|
||||
}
|
||||
|
||||
purehookset hooks_pre_ads_start;
|
||||
|
||||
void run_ads_game_hooks() {
|
||||
rogueviz::rv_hook(hooks_global_mouseover, 100, generate_mouseovers);
|
||||
rogueviz::rv_change<color_t>(titlecolor, 0);
|
||||
@ -129,6 +131,7 @@ void run_ads_game() {
|
||||
run_size_hooks();
|
||||
hybrid::reconfigure(); // we need to reconfigure to take scalefactor change into account
|
||||
run_ads_game_hooks();
|
||||
callhooks(hooks_pre_ads_start);
|
||||
start_game();
|
||||
|
||||
starting_point = hybrid::get_where(cwt.at).first;
|
||||
|
@ -7,6 +7,8 @@ namespace hr {
|
||||
|
||||
namespace ads_game {
|
||||
|
||||
extern purehookset hooks_pre_ads_start;
|
||||
|
||||
namespace ads_tour {
|
||||
using namespace rogueviz::pres;
|
||||
|
||||
@ -462,6 +464,12 @@ slide relhell_tour[] = {
|
||||
setCanvas(mode, &ccolor::plain, [] {
|
||||
ads_game::run_ads_game_std();
|
||||
tour::slide_backup(pconf.alpha, 1);
|
||||
rv_hook(hooks_pre_ads_start, 100, [] {
|
||||
tour::slide_backup(specialland, laHunting);
|
||||
tour::slide_backup(firstland, laHunting);
|
||||
tour::slide_backup(land_structure, lsSingle);
|
||||
});
|
||||
ads_game::ads_restart();
|
||||
});
|
||||
}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user