Can Glest support such there players like this way: one human, one cpu, one network at the same time?
Why don't AI commands call the function pushNetworkCommand? How will the clients sync with the server to know what AI are doing if AI commands don't call the function pushNetworkCommand?
Belowing is the current code:
void Ai::returnBase(int unitIndex){
Vec2i pos;
CommandResult r;
int fi;
fi= aiInterface->getFactionIndex();
pos= Vec2i(
random.randRange(-villageRadius, villageRadius), random.randRange(-villageRadius, villageRadius)) +
getRandomHomePosition();
r= aiInterface->giveCommand(unitIndex, ccMove, pos); // why don't call the function pushNetworkCommand?
//aiInterface->printLog(1, "Order return to base pos:" + intToStr(pos.x)+", "+intToStr(pos.y)+": "+rrToStr(r)+"\n");
}