Skip to content

Commit

Permalink
bug 1936/added sound for "too heavy" message
Browse files Browse the repository at this point in the history
  • Loading branch information
Alagner authored and DominusExult committed May 27, 2016
1 parent b15afba commit 2accb88
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drag.cc
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 2accb88

Please sign in to comment.