Closed mnalis closed 4 years ago
Titarians are supposed to remove shunt drive; but I guess it was expected to happen after the pirates take (and we later recover) shunt drive. In weird.pas:event()
:
47 : begin { titarian like shuntdrive }
removecargo(ID_ART_SHUNT_DRIVE);
addlog(47);
end;
utils.pas:removecargo(item)
if given item which does not exist, will remove some other random item!That can break the game - in my case, Pirate was supposed to remove shunt drive (which wasn't there because when Titarians joined Kendar it disappeared - another bug?), so it instead removed homing device, making the game unplayable.
This is buggy on several layers!
=item
, and not jdec()
and notinc()
?On related note:
254
inaddcargo2()
(similar problem possible as one fixed in addcargo() in 1f8de2fb088dc46a35e2eb853e521516487a7d1e)