mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-05 11:12:49 +00:00
nilrider:: fixed scores on ski jumping
This commit is contained in:
parent
410b33edd2
commit
a499c3231f
@ -98,13 +98,13 @@ bool timestamp::collect(level *lev) {
|
|||||||
}
|
}
|
||||||
else if(res == grSuccess) {
|
else if(res == grSuccess) {
|
||||||
goals |= Flag(gid);
|
goals |= Flag(gid);
|
||||||
lev->current_score[gid] = timer;
|
auto& score = lev->current_score[gid];
|
||||||
if(lev->flags & nrlJumping) lev->current_score[gid] = -where[0];
|
score = timer;
|
||||||
|
if(lev->flags & nrlJumping) score = -where[0];
|
||||||
if(planning_mode || !loaded_or_planned) {
|
if(planning_mode || !loaded_or_planned) {
|
||||||
auto &res = lev->records[planning_mode][gid];
|
auto &res = lev->records[planning_mode][gid];
|
||||||
if(res == 0 || timer < res) {
|
if(res == 0 || score < res) {
|
||||||
res = timer;
|
res = score;
|
||||||
println(hlog, "saved -- success on goal ", gid, " in time ", timer);
|
|
||||||
save();
|
save();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user