summaryrefslogtreecommitdiff
path: root/UserInput.cpp
diff options
context:
space:
mode:
authorJapa2010-07-31 03:06:53 +0000
committerJapa2010-07-31 03:06:53 +0000
commit641040bc8f4322e4ba9e0417e8f148c9d102dc65 (patch)
treee300cc2ecf5e45d75899101d14cbb7542ec702fd /UserInput.cpp
parentf4654513350d988342b68a79548d18381cd32b55 (diff)
downloadstonesense-641040bc8f4322e4ba9e0417e8f148c9d102dc65.tar.gz
stonesense-641040bc8f4322e4ba9e0417e8f148c9d102dc65.tar.bz2
stonesense-641040bc8f4322e4ba9e0417e8f148c9d102dc65.tar.xz
added the ability to set tiles according to the surroundings.
Diffstat (limited to 'UserInput.cpp')
-rw-r--r--UserInput.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/UserInput.cpp b/UserInput.cpp
index 6e3a334..60dce02 100644
--- a/UserInput.cpp
+++ b/UserInput.cpp
@@ -230,7 +230,8 @@ void doKeys(int Key)
timeToReloadSegment = true;
}
if(Key == ALLEGRO_KEY_C){
- config.truncate_walls = !config.truncate_walls;
+ config.truncate_walls++;
+ if (config.truncate_walls > 2) config.truncate_walls = 0;
timeToReloadSegment = true;
}
if(Key == ALLEGRO_KEY_F){