1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-17 10:44:48 +00:00

rogueviz:: sag:: -sagfull and dofullsa now accept times as float

This commit is contained in:
Zeno Rogue 2023-02-15 14:50:24 +01:00
parent c53972c4b0
commit 9853de5775

View File

@ -413,7 +413,7 @@ namespace sag {
reassign();
}
void dofullsa(int satime) {
void dofullsa(ld satime) {
sagmode = sagSA;
int t1 = SDL_GetTicks();
int tl = -999999;
@ -1283,7 +1283,7 @@ int readArgs() {
}
// (4) perform simulated annealing: -fullsa <time in seconds>
else if(argis("-sagfull")) {
shift(); sag::dofullsa(argi());
shift(); sag::dofullsa(argf());
}
else if(argis("-sagfulli")) {
shift(); sag::dofullsa_iterations(argll());