mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-07 11:52:51 +00:00
racing:: save parameters to config
This commit is contained in:
parent
eab0369ce9
commit
92b37cf9e2
@ -348,6 +348,13 @@ void initConfig() {
|
|||||||
|
|
||||||
addsaver(vid.consider_shader_projection, "shader-projection", true);
|
addsaver(vid.consider_shader_projection, "shader-projection", true);
|
||||||
|
|
||||||
|
addsaver(racing::race_advance, "race_advance");
|
||||||
|
addsaver(racing::race_angle, "race_angle");
|
||||||
|
addsaver(racing::ghosts_to_show, "race_ghosts_to_show");
|
||||||
|
addsaver(racing::ghosts_to_save, "race_ghosts_to_save");
|
||||||
|
addsaver(racing::guiding, "race_guiding");
|
||||||
|
addsaver(racing::player_relative, "race_player_relative");
|
||||||
|
|
||||||
#if CAP_SHMUP
|
#if CAP_SHMUP
|
||||||
shmup::initConfig();
|
shmup::initConfig();
|
||||||
#endif
|
#endif
|
||||||
|
4
hyper.h
4
hyper.h
@ -4687,7 +4687,9 @@ ld sintick(int period, ld phase = 0);
|
|||||||
|
|
||||||
#if CAP_RACING
|
#if CAP_RACING
|
||||||
namespace racing {
|
namespace racing {
|
||||||
extern bool on, player_relative, track_ready;
|
extern bool on, player_relative, track_ready, guiding;
|
||||||
|
extern ld race_advance, race_angle;
|
||||||
|
extern int ghosts_to_show, ghosts_to_save;
|
||||||
void generate_track();
|
void generate_track();
|
||||||
void configure_race();
|
void configure_race();
|
||||||
void prepare_subscreens();
|
void prepare_subscreens();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user