diff options
| author | Japa Illo | 2012-02-19 18:02:52 +0530 |
|---|---|---|
| committer | Japa Illo | 2012-02-19 18:02:52 +0530 |
| commit | 8f1887c90e249b83e70d950891df037e95fb6a02 (patch) | |
| tree | 0270271bff03eb31596e8ae8545e497c60a360f8 /GUI.cpp | |
| parent | 7c346109c5b370a226a46585cfa2e461b0d100d0 (diff) | |
| download | stonesense-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.cpp | 19 |
1 files changed, 9 insertions, 10 deletions
@@ -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";
}
|
