summaryrefslogtreecommitdiff
path: root/plugins/tiletypes.cpp
diff options
context:
space:
mode:
authorPetr Mrázek2011-08-06 04:37:29 +0200
committerPetr Mrázek2011-08-06 04:37:29 +0200
commitcb93b5542ec20a8660800f98f1b090af3623e100 (patch)
tree58f268002b223493b5682f037deca7b11d878989 /plugins/tiletypes.cpp
parent24bdc538e961e3d353e3e865f4f1bd7f04738483 (diff)
downloaddfhack-cb93b5542ec20a8660800f98f1b090af3623e100.tar.gz
dfhack-cb93b5542ec20a8660800f98f1b090af3623e100.tar.bz2
dfhack-cb93b5542ec20a8660800f98f1b090af3623e100.tar.xz
Fix problem with running interactive commands from hotkeys.
Diffstat (limited to 'plugins/tiletypes.cpp')
-rw-r--r--plugins/tiletypes.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/tiletypes.cpp b/plugins/tiletypes.cpp
index 7b031f34..43607958 100644
--- a/plugins/tiletypes.cpp
+++ b/plugins/tiletypes.cpp
@@ -124,7 +124,7 @@ bool processTileType(TileType &paint, const std::string &option, const std::stri
if (option == "shape" || option == "sh" || option == "s")
{
- if (valInt >= -1 && valInt << DFHack::tileshape_count)
+ if (valInt >= -1 && valInt < DFHack::tileshape_count)
{
paint.shape = (DFHack::TileShape) valInt;
found = true;
@@ -174,7 +174,7 @@ bool processTileType(TileType &paint, const std::string &option, const std::stri
}
else if (option == "special" || option == "sp")
{
- if (valInt >= -1 && valInt << DFHack::tilespecial_count)
+ if (valInt >= -1 && valInt < DFHack::tilespecial_count)
{
paint.special = (DFHack::TileSpecial) valInt;
found = true;