- [FIX] Ja funcionen les eixides per el piso

This commit is contained in:
2024-06-17 08:10:00 +02:00
parent 219bdd96b3
commit 04d5c41328
4 changed files with 10 additions and 10 deletions

View File

@@ -719,7 +719,7 @@ namespace actor
// Si estic sobre el piso, no faig res [TODO]: Si no hi ha piso ha de caure
if (act->pos.z == 0)
{
if ((act->flags&FLAG_HERO)==0 || room::getExit(ZN)==-1) return;
if ( ((act->flags&FLAG_HERO)==0) || (room::getExit(ZN)==-1) ) return;
room::load(room::getExit(ZN));
act->pos.z = room::getMax().z;