Wrote more comment regarding the problem fixed in commit 21940.
This commit is contained in:
parent
03199b2b7e
commit
7dc0a49577
1 changed files with 4 additions and 1 deletions
|
@ -2162,7 +2162,10 @@ bool event_handler::handle_event_command(const queued_event& event_info,
|
|||
}
|
||||
|
||||
else if(cmd == "endlevel") {
|
||||
//remove 0-hp units from the unit map
|
||||
// Remove 0-hp units from the unit map to avoid the following problem:
|
||||
// In case a die event triggers an endlevel the dead unit is still as a
|
||||
// 'ghost' in linger mode. After save loading in linger mode the unit
|
||||
// is fully visible again.
|
||||
unit_map::iterator u = units->begin();
|
||||
while(u != units->end()) {
|
||||
if(u->second.hitpoints() <= 0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue