- fixed: The math for emulating the old slop overflow was not correct and made the affected sectors in void.wad display incorrectly.

- set compat_polyobj for void.wad because its polyobjects glitch quite a bit with the normal setting.
This commit is contained in:
Christoph Oelckers 2016-12-03 14:42:06 +01:00
parent 28604bad62
commit 5117b32431
2 changed files with 3 additions and 2 deletions

View file

@ -178,8 +178,8 @@ void P_SetSlope (secplane_t *plane, bool setCeil, int xyangi, int zangi, const D
if (ib_compatflags & BCOMPATF_SETSLOPEOVERFLOW) if (ib_compatflags & BCOMPATF_SETSLOPEOVERFLOW)
{ {
// We have to consider an integer multiplication overflow here. // We have to consider an integer multiplication overflow here.
norm[0] = FixedToFloat(FloatToFixed(zang.Cos()) * FloatToFixed(xyang.Cos())); norm[0] = FixedToFloat(FloatToFixed(zang.Cos()) * FloatToFixed(xyang.Cos())) / 65536.;
norm[1] = FixedToFloat(FloatToFixed(zang.Cos()) * FloatToFixed(xyang.Sin())); norm[1] = FixedToFloat(FloatToFixed(zang.Cos()) * FloatToFixed(xyang.Sin())) / 65536.;
} }
else else
{ {

View file

@ -27,6 +27,7 @@
setwallyscale 717 front bot 1.090909 setwallyscale 717 front bot 1.090909
setslopeoverflow setslopeoverflow
polyobj
} }
B2D8DA03489D1C67F60DC87FBC4EA338 // map01 - Massmouth 2 B2D8DA03489D1C67F60DC87FBC4EA338 // map01 - Massmouth 2