1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-05-10 11:14:07 +00:00

roguevizz:ads:: renamed gamedata to gamedata_store to fix some error

This commit is contained in:
Zeno Rogue 2025-04-05 23:31:03 +02:00
parent 1aae71e4e8
commit 9648aed90e

View File

@ -199,7 +199,7 @@ void default_settings() {
lps_add(lps_relhell, cs.haircolor, 0xC0FFC0FF);
}
void gamedata(hr::gamedata* gd) {
void gamedata_store(struct hr::gamedata* gd) {
gd->store(history);
gd->store(ci_at);
gd->store(rocks);
@ -255,7 +255,7 @@ auto shot_hooks =
+ arg::add3("-ads-menu", [] { set_config(); pushScreen(pick_the_game); })
+ arg::add3("-ads-scale", [] { arg::shift(); ld s = arg::argf(); change_scale(s); })
+ arg::add3("-ads-restart", restart)
+ addHook(hooks_gamedata, 500, gamedata)
+ addHook(hooks_gamedata, 500, gamedata_store)
+ addHook(hooks_configfile, 100, [] {
param_f(ads_how_much_invincibility, "ads_invinc")
-> editable(0, TAU, TAU/4, "AdS invincibility time", "How long does the period of invincibility after crashing last, in absolute units.", 'i');