Don't read empty rooms, and update version

develop
Japa 2017-06-22 23:57:04 +05:30
parent 34f55cec29
commit ac0134568e
2 changed files with 2 additions and 2 deletions

@ -315,7 +315,7 @@ void CopyBuilding(int buildingIndex, RemoteFortressReader::BuildingInstance * re
remote_build->set_building_flags(local_build->flags.whole); remote_build->set_building_flags(local_build->flags.whole);
remote_build->set_is_room(local_build->is_room); remote_build->set_is_room(local_build->is_room);
if (local_build->room.width > 0 && local_build->room.height > 0) if (local_build->room.width > 0 && local_build->room.height > 0 && local_build->room.extents != nullptr)
{ {
auto room = remote_build->mutable_room(); auto room = remote_build->mutable_room();
room->set_pos_x(local_build->room.x); room->set_pos_x(local_build->room.x);

@ -1,5 +1,5 @@
#include "df_version_int.h" #include "df_version_int.h"
#define RFR_VERSION "0.16.1" #define RFR_VERSION "0.17.0"
#include <cstdio> #include <cstdio>
#include <time.h> #include <time.h>