Open Rampastring opened 3 years ago
The current fix for this crash is more of a workaround.
I think more research needs to be done and a real fix produced that retains the intended effects.
Is there a crash log for this? Looking at the code i see if Lifetime is larger than 80 that's a crash, WW doesn't do a safety check before accessing buffer Looking at 004EE569 it can def occur, again no checks for max while its looping
Description:
As with many other transparent effects (WaveClass and lasers), IonBlastClass causes crashes with DetailLevel=2.
Conditions:
If the user has DetailLevel=2 in SUN.ini, the Ion Cannon shock-wave effect causes the game to crash when fired at the bottom of the screen.
Additional Files:
Fixed in CnCNet ts-patches by forcing the effect to be drawn as if the user had DetailLevel=1 in game settings. https://github.com/CnCNet/ts-patches/blob/master/src/IonBlastClass_crash.asm