- [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:
@@ -885,9 +885,9 @@ namespace actor
|
|||||||
act->push |= act->mov_push;
|
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);
|
audio::playSound("snd_push.wav", SOUND_BASIC);
|
||||||
push_sound_already_playing = true;
|
push_sound_already_playing = true;
|
||||||
@@ -1044,7 +1044,7 @@ namespace actor
|
|||||||
{
|
{
|
||||||
act->react_push--;
|
act->react_push--;
|
||||||
if (act->react_push == 0)
|
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
|
// [RZC 26/09/2024] Hack usant react_push en les bambolles de café per al dz del moviment de anar pegant botets
|
||||||
|
|||||||
Reference in New Issue
Block a user