mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 14:51:46 +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,18 +4113,22 @@ void AActor::Tick ()
|
|||
}
|
||||
else
|
||||
{
|
||||
AInventory * item = Inventory;
|
||||
|
||||
// Handle powerup effects here so that the order is controlled
|
||||
// by the order in the inventory, not the order in the thinker table
|
||||
while (item != NULL && item->Owner == this)
|
||||
if (!player || !(player->cheats & CF_PREDICTING))
|
||||
{
|
||||
IFVIRTUALPTR(item, AInventory, DoEffect)
|
||||
// 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)
|
||||
{
|
||||
VMValue params[1] = { item };
|
||||
VMCall(func, params, 1, nullptr, 0);
|
||||
IFVIRTUALPTR(item, AInventory, DoEffect)
|
||||
{
|
||||
VMValue params[1] = { item };
|
||||
VMCall(func, params, 1, nullptr, 0);
|
||||
}
|
||||
item = item->Inventory;
|
||||
}
|
||||
item = item->Inventory;
|
||||
}
|
||||
|
||||
if (flags & MF_UNMORPHED)
|
||||
|
|
Loading…
Reference in a new issue