- [FIX] Ja no vola al botar a una porta
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user