- [FIX] Ja no vola al botar a una porta

This commit is contained in:
2024-07-11 13:46:00 +02:00
parent ebf3d11e70
commit 97cc9a0bfd

View File

@@ -592,7 +592,7 @@ namespace actor
if (act->react_mask)
{
// Si topetem en una vora de l'habitació, s'acabat el bot
if ((act->pos.x+act->size.x)>max.x || act->pos.x<min.x || (act->pos.y+act->size.y)>max.y || act->pos.y<min.y) act->react_push=9;
if ((act->pos.x+act->size.x)>max.x || act->pos.x<min.x || (act->pos.y+act->size.y)>max.y || act->pos.y<min.y) act->react_push=0;
// Si encara està botant (react_push > 0)...
if (act->react_push>0)