ExtractFunction
Code style
Move function
Removed duplicated deletes and renamed function
Assert that arrowobj is not NULL
Remove unused declaration
Remove return value
Return early
Indentation
Remove duplicated assignment
Code style
Rename variable
Make player entity pointer const and use it later
Remove copy-paste
Indentation
Replace pointer with const reference
Replace pointer with reference
Replace pointer with reference