Change the clearing of MultiLevelInv during initialization to reduce wasted stores. MultiLevelInv has three fields. Field ::Initial is not accessed by MultiLevelInv_CountLevelPowerups, and is overwritten immediately afterward, so it does not need to be cleared first. Field ::Current is unconditionally cleared by MultiLevelInv_CountLevelPowerups, so it does not need to be cleared first. Field ::RespawnTimer is not accessed by MultiLevelInv_CountLevelPowerups, but needs to be cleared. Add a clear of field .RespawnTimer and remove the clear of the entire structure. |
||
---|---|---|
.. | ||
2d | ||
3d | ||
arch | ||
editor | ||
main | ||
misc |