mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-01 03:23:09 +03:00
mars: fix bail:meme retry counter
This commit is contained in:
parent
98aa6ee728
commit
8e677537c0
@ -203,7 +203,6 @@ u3_mars_play(u3_mars* mar_u, c3_d eve_d)
|
|||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
c3_d fir_d = mar_u->dun_d; // started at
|
|
||||||
c3_d mem_d = 0; // last event to meme
|
c3_d mem_d = 0; // last event to meme
|
||||||
c3_w try_w = 0; // [mem_d] retry count
|
c3_w try_w = 0; // [mem_d] retry count
|
||||||
|
|
||||||
@ -222,7 +221,11 @@ u3_mars_play(u3_mars* mar_u, c3_d eve_d)
|
|||||||
} break;
|
} break;
|
||||||
|
|
||||||
case _play_mem_e: {
|
case _play_mem_e: {
|
||||||
if ( (mem_d == mar_u->dun_d) && (3 == ++try_w) ) {
|
if ( mem_d != mar_u->dun_d ) {
|
||||||
|
mem_d = mar_u->dun_d;
|
||||||
|
try_w = 0;
|
||||||
|
}
|
||||||
|
else if ( 3 == ++try_w ) {
|
||||||
fprintf(stderr, "play (%" PRIu64 "): failed\r\n", mar_u->dun_d + 1);
|
fprintf(stderr, "play (%" PRIu64 "): failed\r\n", mar_u->dun_d + 1);
|
||||||
u3m_save();
|
u3m_save();
|
||||||
// XX check loom size, suggest --loom X
|
// XX check loom size, suggest --loom X
|
||||||
@ -231,8 +234,6 @@ u3_mars_play(u3_mars* mar_u, c3_d eve_d)
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
mem_d = mar_u->dun_d;
|
|
||||||
|
|
||||||
// XX pack before meld?
|
// XX pack before meld?
|
||||||
//
|
//
|
||||||
if ( u3C.wag_w & u3o_auto_meld ) {
|
if ( u3C.wag_w & u3o_auto_meld ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user