Update bprobe to print civzone subtypes

develop
Quietust 2012-03-15 20:09:56 -05:00
parent c72fb76316
commit 4d66218783
2 changed files with 5 additions and 0 deletions

@ -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;

@ -304,6 +304,9 @@ command_result df_bprobe (color_ostream &out, vector <string> & 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)