summaryrefslogtreecommitdiff
path: root/UserInput.cpp
diff options
context:
space:
mode:
authorJonas Ask2009-11-11 01:31:52 +0000
committerJonas Ask2009-11-11 01:31:52 +0000
commita903d912d9ca5156f8ca6b2ea01df64ffff0e6d3 (patch)
treec4efafd95591285ba164c268f80ada718dbb2920 /UserInput.cpp
parentfee888b734a789273048d96a0f4ba549af213501 (diff)
downloadstonesense-a903d912d9ca5156f8ca6b2ea01df64ffff0e6d3.tar.gz
stonesense-a903d912d9ca5156f8ca6b2ea01df64ffff0e6d3.tar.bz2
stonesense-a903d912d9ca5156f8ca6b2ea01df64ffff0e6d3.tar.xz
New feature: Walls can now be truncated to easier see what's behind them. Bound to C key.
Diffstat (limited to 'UserInput.cpp')
-rw-r--r--UserInput.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/UserInput.cpp b/UserInput.cpp
index 5003cee..0d5e311 100644
--- a/UserInput.cpp
+++ b/UserInput.cpp
@@ -79,6 +79,10 @@ void doKeys(){
timeToReloadSegment = true;
while(key[KEY_I]);
}
+ if(key[KEY_C]){
+ config.truncate_walls = !config.truncate_walls;
+ timeToReloadSegment = true;
+ }
if(key[KEY_1]){
config.segmentSize.z--;
if(config.segmentSize.z <= 0) config.segmentSize.z = 1;