mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-09-29 14:30:40 +00:00
rogueviz::sag:: loglik_repeat works better now
This commit is contained in:
parent
5cdbca3b21
commit
3506ccac13
@ -1311,12 +1311,13 @@ int readArgs() {
|
|||||||
|
|
||||||
bool turn(int delta) {
|
bool turn(int delta) {
|
||||||
if(vizsa_start) {
|
if(vizsa_start) {
|
||||||
|
if(vizsa_start == -1) vizsa_start = ticks;
|
||||||
auto t = ticks;
|
auto t = ticks;
|
||||||
double d = (t-vizsa_start) / (1000. * vizsa_len);
|
double d = (t-vizsa_start) / (1000. * vizsa_len);
|
||||||
if(d > 1 && loglik_repeat) {
|
if(d > 1 && loglik_repeat) {
|
||||||
vizsa_start = ticks;
|
optimize_sag_loglik_auto();
|
||||||
optimize_sag_loglik();
|
|
||||||
output_stats();
|
output_stats();
|
||||||
|
vizsa_start = -1;
|
||||||
}
|
}
|
||||||
if(d > 1) sagmode = sagOff;
|
if(d > 1) sagmode = sagOff;
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user