Removes all mentions of return . where they would be unnecessary (#25142)

* Removes all mentions of `return .`

* I can do this all day

* Arthri review

* Update code/__HELPERS/sanitize_values.dm

Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>

* Update code/__HELPERS/sanitize_values.dm

Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>

---------

Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
This commit is contained in:
DGamerL
2024-04-23 02:49:52 +02:00
committed by GitHub
parent 6b442d3ed2
commit de6a54fbde
21 changed files with 29 additions and 43 deletions
+2 -2
View File
@@ -799,10 +799,10 @@
. = ..()
if(!.) // ..() will return 0 if we didn't actually move anywhere.
return .
return
if(direct & (direct - 1)) // This represents a diagonal movement, which is split into multiple cardinal movements. We'll handle moving the items on the cardinals only.
return .
return
playsound(loc, pick('sound/items/cartwheel1.ogg', 'sound/items/cartwheel2.ogg'), 100, 1, ignore_walls = FALSE)