From 2accb880ae5ee833c428c22ebc6ff826049e61a7 Mon Sep 17 00:00:00 2001 From: Alagner Date: Sat, 28 May 2016 01:12:19 +0200 Subject: [PATCH] bug 1936/added sound for "too heavy" message --- drag.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drag.cc b/drag.cc index a06c983c9..50198a84c 100644 --- a/drag.cc +++ b/drag.cc @@ -141,6 +141,7 @@ bool Dragging_info::start( if (!cheat.in_hack_mover() && !obj->is_dragable() && !obj->get_owner()) { Mouse::mouse->flash_shape(Mouse::tooheavy); + Audio::get_ptr()->play_sound_effect(Audio::game_sfx(76)); obj = 0; gump = 0; okay = false; @@ -305,6 +306,7 @@ static bool Check_weight( int wt = owner->get_weight() + to_drop->get_weight(); if (wt / 10 > owner->get_max_weight()) { Mouse::mouse->flash_shape(Mouse::tooheavy); + Audio::get_ptr()->play_sound_effect(Audio::game_sfx(76)); return false; } return true;