library category fixes, moved edit appearence->fun where it should be

This commit is contained in:
Tastyfish
2011-12-25 00:52:36 -05:00
parent baef1bdad7
commit 31a2f6d5ef
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -77,7 +77,7 @@
var/list/catbooks = new()
// get books in category
for(var/datum/archived_book/B in books)
if(category && !findtext(category, B.category))
if(!category || (category != B.category))
continue;
catbooks += B
world << "cat [category]: [B.title]"
@@ -435,7 +435,7 @@ datum/borrowbook // Datum used to keep track of who has borrowed what when and f
continue;
if(title && !findtext(title, book.title))
continue;
if(category && !findtext(category, book.category))
if(!category || (category != "Any" && category != book.category))
continue;
dat += "<tr><td>[book.author]</td><td>[book.title]</td><td>[book.category]</td><td>[book.id]</td></tr>"
dat += "</table><BR>"
+1 -1
View File
@@ -762,7 +762,7 @@
/client/proc/editappear(mob/living/carbon/human/M as mob in world)
set name = "Edit Appearance"
set category = "Admin"
set category = "Fun"
if(!istype(M, /mob/living/carbon/human))
usr << "\red You can only do this to humans!"
return