porting.cpp[legacy]: import a legacy party correctly,

+ do not import empty timer...
This commit is contained in:
ALONSO Laurent
2021-09-29 11:15:50 +02:00
committed by Celtic Minstrel
parent 0c277ecefd
commit 3d1faba4b2
3 changed files with 33 additions and 15 deletions

View File

@@ -245,6 +245,9 @@ void port_out(legacy::outdoor_record_type *out) {
}
void port_party(legacy::party_record_type* old){
if(cur_scen_is_mac != mac_is_intel)
return;
flip_long(&old->age);
flip_short(&old->gold);
flip_short(&old->food);
@@ -327,6 +330,9 @@ void port_party(legacy::party_record_type* old){
}
void port_pc(legacy::pc_record_type* old){
if(cur_scen_is_mac != mac_is_intel)
return;
flip_short(&old->main_status);
for(short i = 0; i < 30; i++)
flip_short(&old->skills[i]);
@@ -352,9 +358,12 @@ void port_pc(legacy::pc_record_type* old){
}
void port_c_town(legacy::current_town_type* old){
port_town(&old->town);
if(cur_scen_is_mac != mac_is_intel)
return;
flip_short(&old->town_num);
flip_short(&old->difficulty);
port_town(&old->town);
flip_short(&old->monst.which_town);
flip_short(&old->monst.hostile);
for(short j = 0; j < 60; j++){