mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 03:27:05 +01:00
Merge pull request #12968 from farie82/AI-turf-click-fix
Makes AI able to click on turfs (flooring)
This commit is contained in:
@@ -1200,7 +1200,8 @@ var/list/ai_verbs_default = list(
|
||||
if(isturf(loc)) //AI in core, check if on cameras
|
||||
//get_turf_pixel() is because APCs in maint aren't actually in view of the inner camera
|
||||
//apc_override is needed here because AIs use their own APC when depowered
|
||||
return (cameranet && cameranet.checkTurfVis(get_turf_pixel(A))) || apc_override
|
||||
var/turf/T = isturf(A) ? A : get_turf_pixel(A)
|
||||
return (cameranet && cameranet.checkTurfVis(T)) || apc_override
|
||||
//AI is carded/shunted
|
||||
//view(src) returns nothing for carded/shunted AIs and they have x-ray vision so just use get_dist
|
||||
var/list/viewscale = getviewsize(client.view)
|
||||
|
||||
Reference in New Issue
Block a user