From 4d66218783a6285ae2aab9f6c9e8631295cff22f Mon Sep 17 00:00:00 2001 From: Quietust Date: Thu, 15 Mar 2012 20:09:56 -0500 Subject: [PATCH] Update bprobe to print civzone subtypes --- library/include/modules/Buildings.h | 2 ++ plugins/probe.cpp | 3 +++ 2 files changed, 5 insertions(+) diff --git a/library/include/modules/Buildings.h b/library/include/modules/Buildings.h index 73542450b..ec44f7713 100644 --- a/library/include/modules/Buildings.h +++ b/library/include/modules/Buildings.h @@ -26,6 +26,7 @@ distribution. #include "Export.h" #include "DataDefs.h" #include "df/building.h" +#include "df/civzone_type.h" #include "df/furnace_type.h" #include "df/workshop_type.h" #include "df/construction_type.h" @@ -53,6 +54,7 @@ struct t_building union { int16_t subtype; + df::civzone_type civzone_type; df::furnace_type furnace_type; df::workshop_type workshop_type; df::construction_type construction_type; diff --git a/plugins/probe.cpp b/plugins/probe.cpp index 6b6d406ce..bff612680 100644 --- a/plugins/probe.cpp +++ b/plugins/probe.cpp @@ -304,6 +304,9 @@ command_result df_bprobe (color_ostream &out, vector & parameters) switch (building.type) { + case building_type::Civzone: + out.print(", subtype %s", ENUM_KEY_STR(civzone_type, building.civzone_type)); + break; case building_type::Furnace: out.print(", subtype %s", ENUM_KEY_STR(furnace_type, building.furnace_type)); if (building.furnace_type == furnace_type::Custom)