mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-01-31 04:50:48 +00:00
Do not call DoEffect when predicting player movement.
This commit is contained in:
parent
f96f71044f
commit
12ad7ee933
1 changed files with 12 additions and 8 deletions
|
@ -4113,10 +4113,13 @@ void AActor::Tick ()
|
|||
}
|
||||
else
|
||||
{
|
||||
AInventory * item = Inventory;
|
||||
|
||||
if (!player || !(player->cheats & CF_PREDICTING))
|
||||
{
|
||||
// Handle powerup effects here so that the order is controlled
|
||||
// by the order in the inventory, not the order in the thinker table
|
||||
AInventory *item = Inventory;
|
||||
|
||||
while (item != NULL && item->Owner == this)
|
||||
{
|
||||
IFVIRTUALPTR(item, AInventory, DoEffect)
|
||||
|
@ -4126,6 +4129,7 @@ void AActor::Tick ()
|
|||
}
|
||||
item = item->Inventory;
|
||||
}
|
||||
}
|
||||
|
||||
if (flags & MF_UNMORPHED)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue