special[hack]: called the town's exit when leaving the town (instead of outdoor)

This commit is contained in:
Laurent Alonso(fr)
2020-05-27 17:18:33 +02:00
committed by Celtic Minstrel
parent b0c4a1196e
commit 7a47a397c7

View File

@@ -1922,7 +1922,11 @@ void queue_special(eSpecCtx mode, eSpecCtxType which_type, spec_num_t spec, loca
queued_special.type = which_type; queued_special.type = which_type;
queued_special.mode = mode; queued_special.mode = mode;
queued_special.trigger_time = univ.party.age; queued_special.trigger_time = univ.party.age;
special_queue.push(queued_special); // FIXME: I forced calling the leave special just to avoid calling them outside, ie. with town_num=200
if (mode==eSpecCtx::LEAVE_TOWN)
run_special(queued_special, nullptr, nullptr, nullptr);
else
special_queue.push(queued_special);
} }
void run_special(pending_special_type spec, short* a, short* b, bool* redraw) { void run_special(pending_special_type spec, short* a, short* b, bool* redraw) {