Move k to smaller scope
Move lfr,lfg,lfb to smaller scope
Code style
Indentation
Code style
Disable FORCE_NO_HIDE earlier
Remove copy-paste
Replace long with bool as there is only 2 states
Fix special case handing for dragged objects being teleported
Fix flag check
Fix flag check
Fix flag check
Move CHANGE closer to where it is used
Add TODO
Code style
Use clamp
Use clamp
Replace float with long
Code style
Code style