WeiDUorg / weidu

WeiDU is a program used to develop, distribute and install modifications for games based on the Infinity Engine.
http://www.weidu.org
GNU General Public License v2.0
90 stars 20 forks source link

fj_are_struct corrupts ARE resources in PST #109

Closed Argent77 closed 6 years ago

Argent77 commented 6 years ago

The projectile offset definition overlaps with the note count definition for PST (code):

PATCH_IF is_pst BEGIN
  TEXT_SPRINT $struct(0xc8 0xcc 0x04 0x214) note
END ELSE BEGIN
  TEXT_SPRINT $struct(0xc4 0xc8 0x04 0x034) note
END
TEXT_SPRINT $struct(0xcc 0xd0 0x04 0x01c) projectile

Projectile structures are not available in the ARE V1.0 variant for PST.

FredrikLindgren commented 6 years ago

Fixed. The function will only sprint projectiles in the ELSE branch.