mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 20:48:56 +01:00
[NO GBP] Fixes hoverboard being able to be used in space. (#84533)
## About The Pull Request Apparently I've left out that `isopenspaceturf(A)` returns false on normal (not multi-z) space turfs because they're of a different path. This should fix the fact you can use hoverboards as a substitute jetpacks, which wasn't intended. You can still use them in space if there's lattice/catwalk underneath, or another kind of turf on the z-level below however. ## Why It's Good For The Game Unintended bit from the skateboard buff PR I had made months ago. ## Changelog 🆑 fix: Hoverboards properly dysfunction in space without any kind of support underneath them. /🆑
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
var/look_for_land = controller.blackboard[BB_CURRENTLY_SWIMMING]
|
||||
var/list/possible_turfs = list()
|
||||
for(var/turf/possible_turf in oview(search_range, living_pawn))
|
||||
if(isclosedturf(possible_turf) || isspaceturf(possible_turf) || isopenspaceturf(possible_turf))
|
||||
if(isclosedturf(possible_turf) || is_space_or_openspace(possible_turf))
|
||||
continue
|
||||
if(possible_turf.is_blocked_turf())
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user