Fix flag check
Remove comma at end of enum
Remove comma at end of enum
Unify copy-paste
Move sp_max special case handling to caller
Move position calculation to caller
Remove copy-paste
If to assert, modinfo is never set if angle is used