More runtime fixes.

This commit is contained in:
PJB3005
2015-08-18 11:08:09 +02:00
parent e37f94fc63
commit 878d6d4d91
4 changed files with 20 additions and 11 deletions

View File

@@ -235,7 +235,7 @@
if(..())
usr << browse(null, "window=library")
onclose(usr, "library")
return
return 1
if(href_list["pagenum"])
if(!num_pages)
@@ -377,7 +377,7 @@
inventory.Remove(b)
if(href_list["setauthor"])
var/newauthor = copytext(sanitize(input("Enter the author's name: ") as text|null),1,MAX_MESSAGE_LEN)
if(newauthor)
if(newauthor && scanner)
scanner.cache.author = newauthor
if(href_list["setcategory"])
var/newcategory = input("Choose a category: ") in list("Fiction", "Non-Fiction", "Adult", "Reference", "Religion")