]> git.mxchange.org Git - quix0rs-blobwars.git/blobdiff - src/triggers.cpp
Don't define variables in header files.
[quix0rs-blobwars.git] / src / triggers.cpp
index 1648768d2b12bc413d8cc91469c9d82adac4dcf8..9d9584e40a70315f47cd49063c4a58d06a3af921 100644 (file)
@@ -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;
                }