723Studio / OpenXcom_FTA

Fork of OXCE project with additions to support From the Ashes project
http://x-comfromtheashes.tilda.ws/
GNU General Public License v3.0
14 stars 18 forks source link

Update BattlescapeGenerator.cpp #213

Closed drdweeb closed 1 year ago

drdweeb commented 1 year ago

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

initial_backpacked

pressed abort

2stage_backpacked_inventory 2stage_backpacked_map

dropped

initial_dropped

pressed abort

2stage_dropped_inventory 2stage_dropped_map