]> git.mxchange.org Git - quix0rs-blobwars.git/blobdiff - src/triggers.cpp
Don't define variables in header files.
[quix0rs-blobwars.git] / src / triggers.cpp
old mode 100755 (executable)
new mode 100644 (file)
index 1648768..9d9584e
@@ -1,5 +1,6 @@
 /*
-Copyright (C) 2004 Parallel Realities
+Copyright (C) 2004-2011 Parallel Realities
+Copyright (C) 2011-2015 Perpendicular Dimensions
 
 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
@@ -92,7 +93,7 @@ void activateTrigger(const char *linkName, const char *activateMessage, bool act
                                engine.setInfoMessage(activateMessage, 1, INFO_ACTIVATE);
 
                        if (train->type != TR_TRAIN)
-                               audio.playSound(SND_OPENDOOR, CH_TOUCH);
+                               audio.playSound(SND_OPENDOOR, CH_TOUCH, train->x);
 
                        linkOkay = true;
                }