- [FIX] Els actors que canvien de direcció aleatòriament no han de fer roido de tropeçar si han canviat de direcció perque sí i no han tropeçat

This commit is contained in:
2024-10-04 20:46:20 +02:00
parent d17ac3a2ed
commit da3cb5ff8e

View File

@@ -885,9 +885,9 @@ namespace actor
act->push |= act->mov_push;
}
void changeMoving(actor_t *act)
void changeMoving(actor_t *act, const bool silent=false)
{
if (!push_sound_already_playing)
if (!silent && !push_sound_already_playing)
{
audio::playSound("snd_push.wav", SOUND_BASIC);
push_sound_already_playing = true;
@@ -1044,7 +1044,7 @@ namespace actor
{
act->react_push--;
if (act->react_push == 0)
changeMoving(act);
changeMoving(act, true);
}
// [RZC 26/09/2024] Hack usant react_push en les bambolles de café per al dz del moviment de anar pegant botets