Back to the Vavoom Forum Archives


Forum

[Fixed] Polyobj DoorSlide - distance is messed up

Thu, 07 Jul 2005 11:04:47

Nuxius

When using the Polyobj DoorSlide function, I have noticed that Vavoom's distance calculations are seriously messed up. Regardless of what you set it to, after using the door several times (sometimes even the first time), sometimes it will only partially close, leaving a gap. Other times, it will go too far, and leave a gap on the other side. I've been able to get a door to only close half way after opening and closing it a few times. If you want me to, I can set up an example wad for you.
Thu, 07 Jul 2005 17:20:29

Firebrand

I have also noticed this bug too, I think it's a problem with the polyobj special.
Thu, 07 Jul 2005 17:38:37

Janis Legzdinsh

It was missing distance check for last tick and could move a little bit more that it should. I added a check, hope it will fix the problem.
Thu, 07 Jul 2005 17:56:08

Firebrand

If you update the CVS repository I can make a quick test to see if it's really fixed <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: --> .
Fri, 08 Jul 2005 14:11:07

Firebrand

Well, the problem seems to have reduced, but it hasn't been completely fixed.
Fri, 08 Jul 2005 17:56:40

Janis Legzdinsh

Actually because of the way polyobj position was updated there always was a gap between polyobjs. I added better rounding and it looks much better.
Sat, 09 Jul 2005 10:57:55

Firebrand

AFAIK the only rounding functions supported by the standard M$VC libraries are ceil() and floor(), I didn't knew about that round() one you used, also the compiler doesn't recognize it as a function. My suggestion would be that if you know the function comes from a non standard library, you could include it in the "maths.h" header file or you could try using the ceil() and floor(). I'll try to fix it somehow, but don't count on it, lol.
Sat, 09 Jul 2005 12:20:01

Janis Legzdinsh

Changed to use floor(). Basicly round(x) = floor(x + 0.5).

Back to the Vavoom Forum Archives