lines 2xx: added isStunnedHostile(...) function(kind of) to make the code more readable
lines 3xx: kept stunned aliens in exit area alive
lines 4xx: cached the result of multiple calls of (*i)->getUnit() to local variable tmpUnit;
let stunned aliens in exit area proceed to the second stage
lines 6xx: let stunned aliens in exit area be deployed
test:
altered mission STR_INITIAL_REGIONAL_HQ (it has nextStage)
stunned a snakeman, brought him to exit area. (the savegame is attached as zip)
iss_163.zip
tried both cases (stunned snakeman in a backpack, stunned snakeman on a floor)
backpacked
issue#163
lines 2xx: added isStunnedHostile(...) function(kind of) to make the code more readable lines 3xx: kept stunned aliens in exit area alive lines 4xx: cached the result of multiple calls of (*i)->getUnit() to local variable tmpUnit; let stunned aliens in exit area proceed to the second stage lines 6xx: let stunned aliens in exit area be deployed
test: altered mission STR_INITIAL_REGIONAL_HQ (it has nextStage) stunned a snakeman, brought him to exit area. (the savegame is attached as zip) iss_163.zip tried both cases (stunned snakeman in a backpack, stunned snakeman on a floor) backpacked
pressed abort
dropped
pressed abort