summaryrefslogtreecommitdiff
path: root/GUI.cpp
diff options
context:
space:
mode:
authorJapa Illo2012-02-19 18:02:52 +0530
committerJapa Illo2012-02-19 18:02:52 +0530
commit8f1887c90e249b83e70d950891df037e95fb6a02 (patch)
tree0270271bff03eb31596e8ae8545e497c60a360f8 /GUI.cpp
parent7c346109c5b370a226a46585cfa2e461b0d100d0 (diff)
downloadstonesense-8f1887c90e249b83e70d950891df037e95fb6a02.tar.gz
stonesense-8f1887c90e249b83e70d950891df037e95fb6a02.tar.bz2
stonesense-8f1887c90e249b83e70d950891df037e95fb6a02.tar.xz
got rid of floorType, wallType, etc, for good.
Signed-off-by: Japa Illo <japa.mala.illo@gmail.com>
Diffstat (limited to 'GUI.cpp')
-rw-r--r--GUI.cpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/GUI.cpp b/GUI.cpp
index 4a98691..25f3ba1 100644
--- a/GUI.cpp
+++ b/GUI.cpp
@@ -374,28 +374,27 @@ void drawDebugCursorAndInfo(){
if(!b) return;
- // FIXME: Commented out due to missing floor/wall/etc Type
- /*
+
int ttype;
const char* tform = NULL;
- if (b->floorType>0)
+ if (b->tileShapeBasic==tiletype_shape_basic::Floor)
{
- ttype=b->floorType;
+ ttype=b->tileType;
tform="floor";
}
- else if (b->wallType > 0)
+ else if (b->tileShapeBasic==tiletype_shape_basic::Wall)
{
- ttype=b->wallType;
+ ttype=b->tileType;
tform="wall";
}
- else if (b->ramp.type > 0)
+ else if (b->tileShapeBasic==tiletype_shape_basic::Ramp > 0)
{
- ttype=b->ramp.type;
+ ttype=b->tileType;
tform="ramp";
}
- else if (b->stairType > 0)
+ else if (b->tileShapeBasic==tiletype_shape_basic::Stair > 0)
{
- ttype=b->stairType;
+ ttype=b->tileType;
tform="stair";
}