Charpurrr / SuperMarioSolarEngine

An open source fanmade 2D Mario engine that implements elements from all the mainline 3D titles
https://docs.google.com/document/d/1hzFKpgm-1IukFWBig9A5ZsCQQEqVqJFVrNOAVmHSHJI/edit
MIT License
15 stars 7 forks source link

Simplify parent_switch_check() #1

Closed GTcreyon closed 1 year ago

GTcreyon commented 1 year ago

The above condition is no longer needed, as seek_state() can also manage siblings.

Overall performance could be marginally improved by passing in a NodePath instead of a State, since get_path_to() could be skipped, but this is a breaking change, so it can wait 'til later.