Fixes #11776. Fixes error in be75349.

This commit is contained in:
Mustafa Kalash
2016-01-01 16:20:02 -05:00
parent 82e793ae91
commit 6e23584e69
2 changed files with 8 additions and 5 deletions

View File

@@ -60,19 +60,22 @@ obj/item/weapon/board/attackby(obj/item/I as obj, mob/user as mob)
dat += "'#66CCFF'>"
else
dat += "'#252536'>"
dat += "<A href='?src=\ref[src];select=[i]'"
if(!isobserver(user))
dat += "<A href='?src=\ref[src];select=[i]'>"
if(board["[i]"])
var/obj/item/I = board["[i]"]
user << browse_rsc(board_icons["[I.icon] [I.icon_state]"],"[I.icon_state].png")
dat += "><image src='[I.icon_state].png' style='border-style: none'>"
dat += "<image src='[I.icon_state].png' style='border-style: none'>"
else
dat += "style='display:block;text-decoration:none;'>&nbsp;"
dat += "</A></td>"
if(!isobserver(user))
dat += "</A>"
dat += "</td>"
dat += "</table><br>"
if(selected >= 0)
if(selected >= 0 && !isobserver(user))
dat += "<br><A href='?src=\ref[src];remove=0'>Remove Selected Piece</A>"
user << browse(dat,"window=boardgame;size=500x500")
onclose(usr, "boardgame")

View File

@@ -144,11 +144,11 @@
return
if(!check_rights(R_ADMIN, 0))
var/datum/species/S = all_species[client.prefs.species]
if((S.spawn_flags & IS_WHITELISTED) && !is_alien_whitelisted(src, client.prefs.species) && config.usealienwhitelist)
src << alert("You are currently not whitelisted to play [client.prefs.species].")
return 0
var/datum/species/S = all_species[client.prefs.species]
if(!(S.spawn_flags & CAN_JOIN))
src << alert("Your current species, [client.prefs.species], is not available for play on the station.")
return 0