For linger mode : end all units moves (with red orbs)

I just found a linger() in  playsingle_controller.cpp, i suppose it also does MP?
This commit is contained in:
Ali El Gariani 2007-08-02 00:32:08 +00:00
parent 700e3e9189
commit 96b6a721c2

View File

@ -513,6 +513,10 @@ void playsingle_controller::linger(upload_log& log)
LOG_NG << "beginning end-of-scenario linger";
browse_ = true;
linger_ = true;
// end all unit moves
for (unit_map::iterator u = units_.begin(); u != units_.end(); u++) {
u->second.set_user_end_turn(true);
}
try {
// Same logic as single-player human turn, but
// *not* the same as multiplayer human turn.