mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-25 22:10:59 +00:00
Add back call to rotation_blocked() lost in 896bb48
.
If `ent->dmg` is `0` it's set to `2`: ``` if (!ent->dmg) { ent->dmg = 2; } ``` This enforces func_rotate dealing at least `2` damage points per tick. Vanilla Quake II had this code a few lines below: ``` if (ent->dmg) { ent->blocked = rotating_blocked; } ``` The if clause is always true. PVS studio complained about that. By mistake the whole block was removed, essentially preveting func_rotate from freeing itself when blocked. This broke at least the 'Emulsifying Flesh Press' in the fact2.bsp. Closes #786.
This commit is contained in:
parent
896bb48d36
commit
acf92bdd08
1 changed files with 1 additions and 0 deletions
|
@ -963,6 +963,7 @@ SP_func_rotating(edict_t *ent)
|
|||
}
|
||||
|
||||
ent->use = rotating_use;
|
||||
ent->blocked = rotating_blocked;
|
||||
|
||||
if (ent->spawnflags & 1)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue