Sometimes we do full updates of the $c object just in case we got out of sync. Ideally, we would only do this at the start of turns and when we run into an unexpected condition. To find the situations where we can get out of sync, we should prevent code like this from running on the ai servers only:
if (!$c->turns % 5) { //Grab new copy every 5 turns
$c->updateMain(); //we probably don't need to do this *EVERY* turn
}
Sometimes we do full updates of the $c object just in case we got out of sync. Ideally, we would only do this at the start of turns and when we run into an unexpected condition. To find the situations where we can get out of sync, we should prevent code like this from running on the ai servers only: