21 users online:  Alex, Coockie1173, darkreader2636, FrozenQuills, Goobie Doobie, GRAVITORBOX, GrenCarret, HeitorPorfirio2006,  K.T.B.,  Kevin, LightAligns, metronia, Nitrogen, Parodian Dark,  RussianMan, Tanker_Lutz, TheOrangeToad,  TickTockClock, VLSkoot, wye, Zavok - Guests: 64 - Bots: 122
Users: 57,115 (2,273 active)
Latest user: Virtual Ketchup

Vertical spawn/despawn fix

SMW Patches → Vertical spawn/despawn fix

This file is obsolete. The latest version is Vertical Spawn/Despawn Fix. For other versions, check the version history.

Submission Details


View all

Comments (4)

UltiMario Link
Warning: This patch isn't fully compatible with LM 3.0+ as it breaks some sprite spawning in some horizontal level modes. Don't install this if you're using these new features.
lx5 Link
Working fine on non SA-1 and SA-1. I never knew these bugs existed in first place. Nice.
HammerBrother Author Link
I've realized that smw's suboffscreen routine does not delete sprites in horizontal levels when above the level, since most sprites never ascend infinitely into the sky. This is probably nintendo added this code that had a potential bug:

Originally posted by bullet bill
CODE_019017:        B5 D8         LDA RAM_SpriteYLo,X       
CODE_019019:        38            SEC                       
CODE_01901A:        E5 1C         SBC RAM_ScreenBndryYLo    
CODE_01901C:        C9 F0         CMP.B #$F0                
CODE_01901E:        90 03         BCC CODE_019023           
CODE_019020:        9E C8 14      STZ.W $14C8,X             
 RussianMan Link
Cool, bullet fix bill!