Duke4.net Forums: Laser Tripmine Bug - Duke4.net Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Laser Tripmine Bug

#1

So what the hell's up with this?

Attached thumbnail(s)

  • Attached Image: duke0000.png

0

User is offline   LeoD 

  • Topic #3513

#2

View PostWill_Destroy, on 28 February 2020 - 01:02 AM, said:

So what the hell's up with this?
Introduced at r7601.
2

User is offline   Fox 

  • Fraka kaka kaka kaka-kow!

#3

In the original DOS version, the LASERLINE sprites would have their x/y position changed without updating the sector. This resulted in the LASERLINE disappearing if it spread to another sector.

Eduke32 added a updatesector() check. However updatesectorz() should be used instead, because of cases like the above which multiple sectors overlap.

r7601 changed some stuff about updatesector(), but the bug it probably incidental.
1

User is offline   TerminX 

  • el fundador

  #4

View PostFox, on 28 February 2020 - 05:43 PM, said:

In the original DOS version, the LASERLINE sprites would have their x/y position changed without updating the sector. This resulted in the LASERLINE disappearing if it spread to another sector.

Eduke32 added a updatesector() check. However updatesectorz() should be used instead, because of cases like the above which multiple sectors overlap.

r7601 changed some stuff about updatesector(), but the bug it probably incidental.

You only want to use updatesectorz() if the change in coordinates can potentially be a change to a sector vertically stacked on top of another, like with TROR or the water in Shadow Warrior, etc. If the movement is only horizontal you want regular updatesector().
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


All copyrights and trademarks not owned by Voidpoint, LLC are the sole property of their respective owners. Play Ion Fury! ;) © Voidpoint, LLC

Enter your sign in name and password


Sign in options