You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I could never figure out the actual cause of this, but it was frequently setting serfs to Lost state and resulting in no transporter at the flag, breaking the player's economy. Simply disabling the set_lost_state seems to fix the problem, whatever the cause. I have been running this way since 2021 and haven't ever seen an issue as a result of skipping the set_lost_state call.
if (map->has_serf(pos)) {
Serf *serf = get_serf_at_pos(pos);
if (!map->has_flag(pos)) {
serf->set_lost_state();
} else {
/* Handle serf close to flag, where
it should only be lost if walking
in the wrong direction. */
int d = serf->get_walking_dir();
if (d < 0) d += 6;
if (d == reverse_direction(dir)) {
//serf->set_lost_state(); // commenting this out appears to fix the problem with no side effects
}
}
}
The text was updated successfully, but these errors were encountered:
I could never figure out the actual cause of this, but it was frequently setting serfs to Lost state and resulting in no transporter at the flag, breaking the player's economy. Simply disabling the set_lost_state seems to fix the problem, whatever the cause. I have been running this way since 2021 and haven't ever seen an issue as a result of skipping the set_lost_state call.
The text was updated successfully, but these errors were encountered: