Text disappears when space is at the end of a new line.
Numbered Steps to Reproduce Problem:
Code Snippet (if applicable) to Reproduce Problem:
OsText
parent_type = /obj
screen_loc = "1:16,1"
mob
var
OsText/textObj
verb
Bugged()
{
text = "asdfghjk "
if(!textObj)
{
textObj = new()
client.screen += textObj
}
textObj.maptext_width = 32
textObj.maptext = text
}
NotBugged()
{
text = "asdfghjk "
if(!textObj)
{
textObj = new()
client.screen += textObj
}
textObj.maptext_width = 32
textObj.maptext = text
}
Expected Results:
Visible Text
Actual Results:
Invisible text
Workarounds:
Trim any spaces at the end.