Merge pull request #7198 from Deantwo/PaperCut

Paper Input Box Fix
This commit is contained in:
Swag McYolosteinen
2015-01-21 15:44:03 +01:00
2 changed files with 7 additions and 2 deletions

View File

@@ -76,7 +76,7 @@
H << "<span class='warning'>You cut yourself on the paper! Ahhhh! Ahhhhh!</span>"
H.damageoverlaytemp = 9001
return
var/n_name = copytext(sanitize(input(usr, "What would you like to label the paper?", "Paper Labelling", null) as text), 1, MAX_NAME_LEN)
var/n_name = stripped_input(usr, "What would you like to label the paper?", "Paper Labelling", null, MAX_NAME_LEN)
if((loc == usr && usr.stat == 0))
name = "paper[(n_name ? text("- '[n_name]'") : null)]"
add_fingerprint(usr)
@@ -243,7 +243,7 @@
if(href_list["write"])
var/id = href_list["write"]
var/t = stripped_input("Enter what you want to write:", "Write")
var/t = stripped_multiline_input("Enter what you want to write:", "Write")
var/obj/item/i = usr.get_active_hand() //Check to see if he still got that darn pen, also check if he's using a crayon or pen.
var/iscrayon = 0
if(!istype(i, /obj/item/weapon/pen))