mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Merge pull request #5226 from clusterfack/thingy
Various small optimizations
This commit is contained in:
@@ -88,20 +88,6 @@ var/global/list/pda_app_menus = list(
|
||||
var/y = 1
|
||||
var/num = 0
|
||||
|
||||
/datum/pda_app/station_map/proc/minimap_update(var/mob/user)
|
||||
if(istype(user,/mob/living/carbon))
|
||||
var/mob/living/carbon/C = user
|
||||
if(C.machine && istype(C.machine,/obj/item/device/pda))
|
||||
var/obj/item/device/pda/pda_device = C.machine
|
||||
var/turf/user_loc = get_turf(user)
|
||||
var/turf/pda_loc = get_turf(pda_device)
|
||||
if(get_dist(user_loc,pda_loc) <= 1)
|
||||
if(pda_device.mode == PDA_APP_STATIONMAP)
|
||||
pda_device.attack_self(C)
|
||||
else
|
||||
user.unset_machine()
|
||||
user << browse(null, "window=pda")
|
||||
|
||||
///////////SNAKEII//////////////////////////////////////////////////////////////
|
||||
|
||||
/datum/pda_app/snake
|
||||
|
||||
Reference in New Issue
Block a user