summaryrefslogtreecommitdiff
path: root/plugins/zone.cpp
diff options
context:
space:
mode:
authorAlexander Gavrilov2012-05-01 18:55:30 +0400
committerAlexander Gavrilov2012-05-01 18:55:30 +0400
commit4cffb6428d5e25b0c3cb09044f65dbf5d43667e9 (patch)
tree5a78cac5f5c3bfb1e9004c451f97adcae4b6571d /plugins/zone.cpp
parent2303a25bdefab30bea67f32d27d35e5002448e8a (diff)
downloaddfhack-4cffb6428d5e25b0c3cb09044f65dbf5d43667e9.tar.gz
dfhack-4cffb6428d5e25b0c3cb09044f65dbf5d43667e9.tar.bz2
dfhack-4cffb6428d5e25b0c3cb09044f65dbf5d43667e9.tar.xz
Update building creation code with new knowledge, and fix zone.
Also, document new lua api, and add a more convenient wrapper.
Diffstat (limited to 'plugins/zone.cpp')
-rw-r--r--plugins/zone.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/zone.cpp b/plugins/zone.cpp
index ee6abf32..4314aa1e 100644
--- a/plugins/zone.cpp
+++ b/plugins/zone.cpp
@@ -1606,8 +1606,8 @@ void zoneInfo(color_ostream & out, df::building* building, bool verbose)
out << ", pen/pasture";
else if (civ->zone_flags.bits.pit_pond)
{
- out << " (pit flags:" << civ->pit_flags << ")";
- if(civ->pit_flags & 1)
+ out << " (pit flags:" << civ->pit_flags.whole << ")";
+ if(civ->pit_flags.bits.is_pond)
out << ", pond";
else
out << ", pit";