HackerN64 / HackerSM64

A Super Mario 64 decompilation repo based on CrashOveride95/ultrasm64 that aims to provide a flexible, easy-to-use base for creating romhacks.
328 stars 146 forks source link

Fix cake screen crashing the game when not warping from area 1 #779

Open Reonu opened 5 months ago

Reonu commented 5 months ago

The funny crash is gone

gheskett commented 5 months ago

So while this is a valid solution to the cake screen crash, I'm personally not a fan of this approach. It is valid to have a level script that has a camera but doesn't spawn Mario, and this solution doesn't cover those cases. The better thing would probably be to set the area to NULL or something when it's unloaded and throw it behind a NULL check. This is a higher-risk approach however, so further research and playtesting may be warranted.