boe: timer with time<=0 are empty timer

This commit is contained in:
ALONSO Laurent
2022-07-16 13:54:59 +02:00
committed by Celtic Minstrel
parent 4fd9f42c8e
commit 7068815cb7

View File

@@ -215,6 +215,9 @@ void cParty::import_legacy(legacy::party_record_type& old, cUniverse& univ){
for(short i = 0; i < 30; i++){ for(short i = 0; i < 30; i++){
boats[i].import_legacy(old.boats[i]); boats[i].import_legacy(old.boats[i]);
horses[i].import_legacy(old.horses[i]); horses[i].import_legacy(old.horses[i]);
// boe: timer with time<=0 are empty timer
if (old.party_event_timers[i] <= 0)
continue;
cTimer t; cTimer t;
t.time = old.party_event_timers[i]; t.time = old.party_event_timers[i];
t.node_type = old.global_or_town[i] ? eSpecCtxType::TOWN : eSpecCtxType::SCEN; t.node_type = old.global_or_town[i] ? eSpecCtxType::TOWN : eSpecCtxType::SCEN;