Back to the Vavoom Forum Archives


Forum

[Fixed] [1.25 and later] AimLineAttack div on 0

Mon, 12 Nov 2007 17:24:44

Crimson Wizard

Previous issue was: <!-- m --><a class="postlink" href="http://vavoom.heretichexen.com/forums/viewtopic.php?t=1108">http://vavoom.heretichexen.com/forums/v ... php?t=1108</a><!-- m --> I finally took closer look on what is happening when I am getting crash in this function. I appears so that in->frac value is 0. This makes dist parameter be 0 too, since is being calculated as dist = aim_range * in->frac; or dist = aim_range2d * in->frac; dist value itself is used in such expressions as thingtopslope = (th.Origin.z + th.Height - aim_z) / dist; - that makes division on 0. Currently I am not sure what is an obligatory condition for this. I am getting this behavior on one exact place on my map, but there's nothing particuluary special in it.
Mon, 10 Dec 2007 13:39:14

Firebrand

This one is already fixed in the engine <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->.
Mon, 10 Dec 2007 14:05:32

Crimson Wizard

Yeah, I noticed.

Back to the Vavoom Forum Archives