mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 14:37:16 +00:00
racing::add_debug
This commit is contained in:
parent
2bc66342dd
commit
d65c41db12
1
hyper.h
1
hyper.h
@ -4698,6 +4698,7 @@ namespace racing {
|
||||
void race_won();
|
||||
void apply_seed();
|
||||
string racetimeformat(int t);
|
||||
void add_debug(cell *c);
|
||||
}
|
||||
|
||||
bool subscreen_split(reaction_t for_each_subscreen);
|
||||
|
10
racing.cpp
10
racing.cpp
@ -887,6 +887,16 @@ int get_percentage(int i) {
|
||||
return min(get_info(shmup::pc[i]->base).completion * 100 / (isize(track) - DROP), 100);
|
||||
}
|
||||
|
||||
void add_debug(cell *c) {
|
||||
if(racing::on && racing::rti_id[c]) {
|
||||
auto& r = racing::get_info(c);
|
||||
dialog::addSelItem("from_track", its(r.from_track), 0);
|
||||
dialog::addSelItem("from_start", its(r.from_start), 0);
|
||||
dialog::addSelItem("from_goal", its(r.from_goal), 0);
|
||||
dialog::addSelItem("completion", its(r.completion), 0);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
bool subscreen_split(reaction_t what) {
|
||||
|
Loading…
Reference in New Issue
Block a user