mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-18 19:44:58 +01:00
fixes computers spamming fingers are too big warning. also fixes exploit when using programs w/ fingers that are too big. (#72698)
Fixes #72153 🆑 ShizCalev fix: You'll no longer constantly be spammed with messages if your fingers are too big to interact with a computer's keyboard. fix: You can no longer interact with programs that were previously opened on a computer if your fingers are too big to use the keyboard. fix: You can now look at computer screens even if your fingers are too big to use the keyboard. /🆑
This commit is contained in:
@@ -16,12 +16,6 @@
|
||||
if(!user.can_read(src, READING_CHECK_LITERACY))
|
||||
return
|
||||
|
||||
if(ishuman(user) && !allow_chunky)
|
||||
var/mob/living/carbon/human/human_user = user
|
||||
if(human_user.check_chunky_fingers())
|
||||
balloon_alert(human_user, "fingers are too big!")
|
||||
return
|
||||
|
||||
// Robots don't really need to see the screen, their wireless connection works as long as computer is on.
|
||||
if(!screen_on && !issilicon(user))
|
||||
if(ui)
|
||||
@@ -103,6 +97,12 @@
|
||||
if(.)
|
||||
return
|
||||
|
||||
if(ishuman(usr) && !allow_chunky) //in /datum/computer_file/program/ui_act() too
|
||||
var/mob/living/carbon/human/human_user = usr
|
||||
if(human_user.check_chunky_fingers())
|
||||
balloon_alert(human_user, "fingers are too big!")
|
||||
return TRUE
|
||||
|
||||
switch(action)
|
||||
if("PC_exit")
|
||||
kill_program()
|
||||
|
||||
Reference in New Issue
Block a user