Add compatibility defines to remotefortressreader.cpp

develop
Japa Illo 2017-06-23 16:02:30 +05:30
parent ac0134568e
commit a2f6c80298
1 changed files with 16 additions and 10 deletions

@ -1775,7 +1775,9 @@ static void SetRegionTile(RegionTile * out, df::region_map_entry * e1)
plantMat->set_mat_type(419);
}
}
#if DF_VERSION_INT >= 43005
out->set_snow(e1->snowfall);
#endif
}
static command_result GetWorldMapNew(color_ostream &stream, const EmptyMessage *in, WorldMap *out)
@ -2188,6 +2190,7 @@ static void CopyLocalMap(df::world_data * worldData, df::world_region_details* w
CopyMat(out_building->mutable_material(), in_building->item.mat_type, in_building->item.mat_index);
#if DF_VERSION_INT >= 43005
STRICT_VIRTUAL_CAST_VAR(tower_info, df::site_realization_building_info_castle_towerst, in_building->building_info);
if (tower_info)
{
@ -2212,6 +2215,7 @@ static void CopyLocalMap(df::world_data * worldData, df::world_region_details* w
out_wall->set_end_y(wall_info->end_y - (site_y * 48));
out_wall->set_end_z(wall_info->end_z);
}
#endif
}
}
@ -2561,6 +2565,7 @@ static command_result SendDigCommand(color_ostream &stream, const DigCommand *in
}
mc.setDesignationAt(DFCoord(pos.x(), pos.y(), pos.z()), des);
#if DF_VERSION_INT >= 43005
//remove and job postings related.
for (df::job_list_link * listing = &(world->job_list); listing != NULL; listing = listing->next)
{
@ -2596,6 +2601,7 @@ static command_result SendDigCommand(color_ostream &stream, const DigCommand *in
}
JOB_FOUND:
continue;
#endif
}
mc.WriteAll();