mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-11 18:50:46 +00:00
Revert "gameexec.c: in VM_Move(), update actor[].{floor,ceiling}z for enemies."
This reverts r4975. DONT_BUILD. git-svn-id: https://svn.eduke32.com/eduke32@5014 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
5e0bed4c39
commit
120746322b
1 changed files with 6 additions and 9 deletions
|
@ -788,21 +788,18 @@ dead:
|
|||
}
|
||||
else if (vm.g_sp->picnum != ORGANTIC)
|
||||
{
|
||||
int32_t l;
|
||||
|
||||
// In Duke3D, all other actors don't update .floorz or
|
||||
// .ceilingz here. In EDuke32, they do.
|
||||
|
||||
// All other actors besides ORGANTIC don't update .floorz or
|
||||
// .ceilingz here.
|
||||
if (vm.g_sp->zvel > 0)
|
||||
{
|
||||
actor[vm.g_i].floorz = l = VM_GetFlorZOfSlope();
|
||||
if (vm.g_sp->z > l)
|
||||
vm.g_sp->z = l;
|
||||
if (vm.g_sp->z > actor[vm.g_i].floorz)
|
||||
vm.g_sp->z = actor[vm.g_i].floorz;
|
||||
vm.g_sp->z += A_GetWaterZOffset(vm.g_i);
|
||||
}
|
||||
else if (vm.g_sp->zvel < 0)
|
||||
{
|
||||
actor[vm.g_i].ceilingz = l = VM_GetCeilZOfSlope();
|
||||
const int32_t l = VM_GetCeilZOfSlope();
|
||||
|
||||
if (vm.g_sp->z < l+(66<<8))
|
||||
{
|
||||
vm.g_sp->z = l+(66<<8);
|
||||
|
|
Loading…
Reference in a new issue