chiark / gitweb /
fixes from NYE 2007/8.
[trains.git] / hostside / stopgap-controller
index e331b7da6d45a4971aedc6998120657d6384385e..d782b594801bb78b329559f8566e5dd449ee786f 100755 (executable)
@@ -564,6 +564,11 @@ proc ask_randspeed {} {
     maybechange speeddirn 1
 }    
 
+proc ask_loco {} {
+    global loco
+    set loco [expr {$loco==1 ? 2 : 1}]
+}
+
 proc ask_funcs {lr} {
     global loco
     upvar #0 funcs${lr}${loco} list