ID:2952900
 
BYOND Version:515
Operating System:Windows 8
Web Browser:latex
Applies to:Dream Maker
Status: Open

Issue hasn't been assigned a status value.
Descriptive Problem Summary:
setting colour to white (or hex white) sets the color to null, which makes checks against it kinda whack-a-doodle

Numbered Steps to Reproduce Problem:
1) run the code

Code Snippet (if applicable) to Reproduce Problem:
mob/verb/colour_white()
color = "white"
world << color // null
world << isnull(color) // null af
if(color == "white") // it's not
world << "it's white" // it is

mob/verb/colour_ffffff()
color = "#ffffff"
world << color // its null again
world << isnull(color) // guess what. it's null
if(color == "#ffffff") // it's not
world << "it's #ffffff" // it is


Expected Results:
if(color == "white") should evaluate to true if the color is in fact white.

Actual Results:
it evaluates to false, because white is null

Does the problem occur:
Every time? Or how often?
when will
In other games?
we learn
In other user accounts?
our lesson
On other computers?
with this

When does the problem NOT occur?
lol

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
rofl

Workarounds:
y'know, maybe this is a hidden message with political undertones, hidden within the engine as a commentary on our perception of colour and race, and how that's impacted society over the course of history.
or maybe it's just a bug

Login to reply.