ID:87922
 
Not a bug
BYOND Version:461
Operating System:Windows XP Home
Web Browser:Internet Explorer 8.0
Status: Not a bug

This is not a bug. It may be an incorrect use of syntax or a limitation in the software. For further discussion on the matter, please consult the BYOND forums.
Descriptive Problem Summary:
When using a mob icon greater than 32*32 overlays do not appear over the mob, but under.
Numbered Steps to Reproduce Problem:
used 32*38 mob icon, and a 32*48 icon for hair but only used 37 and up with hair so it could fit properly on mob.
Code Snippet (if applicable) to Reproduce Problem:
mob
icon = 'guy.dmi'
icon_state = "guy"
layer = MOB_LAYER +0.1

var
icon/hair;
verb
ChangeHair()
Mob_ChangeHair()
proc
Mob_ChangeHair()
if (hair)
{
overlays -= hair
}
switch(input("What hair style would you like?", text) in list ("Mushroom","Spikey"))
if("Mushroom")
hair = new('Hair.dmi', "Mushroom_Hair");
if("Spikey")
hair = new('Hair.dmi', "Spikey_Hair");//wats the problem aginz

var/hairred = input("How much red do you want to put into your hair?",,0) as num
var/hairblue = input("How much blue do you want to put into your hair?",,0) as num
var/hairgreen = input("How much green do you want to put into your hair?",,0) as num
hair.Blend(rgb(hairred,hairgreen,hairblue), ICON_MULTIPLY)
overlays += hair

Login()
loc = locate(1,1,1)


Expected Results:
The overlay to appear over the mob.
Actual Results:
The overlay appeared under the mob.
Does the problem occur:
Every time? Or how often?
Every time
In other games?
Not sure
In other user accounts?
Yes
On other computers?
Yes
When does the problem NOT occur?
Never
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? Not sure.

Workarounds: None known, may be some but I'm not sure

Per the reference ("Big icons"), when you're using a non-overlay big icon it will attempt to "push back" other icons in the space it covers, so that for instance a big turf will display properly above the default turf icons beneath.

As a consequence, if you're going to use a big icon for your mob, you have to explicitly set the layer of any overlays.