Merge the boolean args to EV/P_Teleport into a single flags arg
- The flags use TELF_ since DECORATE has an A_Teleport with its own set of TF_ flags. - TELF_KEEPVELOCITY is used instead of TELF_HALTVELOCITY, because there was only one call that ever set bHaltVelocity to false.
This commit is contained in:
parent
939989dc8c
commit
c1b2861362
7 changed files with 59 additions and 33 deletions
|
|
@ -1082,7 +1082,7 @@ void FParser::SF_Teleport(void)
|
|||
}
|
||||
|
||||
if(mo)
|
||||
EV_Teleport(0, tag, NULL, 0, mo, true, true, false);
|
||||
EV_Teleport(0, tag, NULL, 0, mo, TELF_DESTFOG | TELF_SOURCEFOG);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1111,7 +1111,7 @@ void FParser::SF_SilentTeleport(void)
|
|||
}
|
||||
|
||||
if(mo)
|
||||
EV_Teleport(0, tag, NULL, 0, mo, false, false, true);
|
||||
EV_Teleport(0, tag, NULL, 0, mo, TELF_KEEPORIENTATION);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue