summary refs log tree commit diff stats
path: root/src/party.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/party.cpp')
-rw-r--r--src/party.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/party.cpp b/src/party.cpp index 307bca8..b7284c7 100644 --- a/src/party.cpp +++ b/src/party.cpp
@@ -1,6 +1,6 @@
1#include "party.h" 1#include "party.h"
2#include "consts.h" 2#include "consts.h"
3#include <iostream> 3#include "mixer.h"
4 4
5void Party::addMember(Game& game, int spriteId) { 5void Party::addMember(Game& game, int spriteId) {
6 int index = members_.size(); 6 int index = members_.size();
@@ -19,7 +19,7 @@ void Party::addMember(Game& game, int spriteId) {
19 game.setSpriteState(spriteId, "still"); 19 game.setSpriteState(spriteId, "still");
20} 20}
21 21
22void Party::move(Game& game, const Input& keystate) { 22void Party::move(Game& game, Mixer& mixer, const Input& keystate) {
23 if (members_.empty()) { 23 if (members_.empty()) {
24 return; 24 return;
25 } 25 }
@@ -151,6 +151,7 @@ void Party::move(Game& game, const Input& keystate) {
151 151
152 if (blocked && state_ == State::Running) { 152 if (blocked && state_ == State::Running) {
153 stopRunning(game); 153 stopRunning(game);
154 mixer.playSound("../res/bump.wav");
154 } 155 }
155 156
156 // Move everything 157 // Move everything