Fixes NTSL issues (#5596)

Fixes a runtime and logic error in NTSL Scripts introduced by the language pr
This commit is contained in:
Werner
2018-11-12 07:55:02 +01:00
committed by Erki
parent 2c23b2a3d3
commit 4fdc2f58a7
2 changed files with 40 additions and 3 deletions

View File

@@ -260,12 +260,12 @@ datum/signal
if(!job)
job = "?"
if(!language || language == "" || !(language in language_keys))
if(!language || language == "")
language = LANGUAGE_TCB
var/datum/language/L = all_languages[language]
if(!L || !(L.flags & TCOMSSIM))
language = LANGUAGE_TCB
L = all_languages[LANGUAGE_TCB]
newsign.data["mob"] = null
newsign.data["mobtype"] = /mob/living/carbon/human
@@ -277,7 +277,7 @@ datum/signal
newsign.data["job"] = job
newsign.data["compression"] = 0
newsign.data["message"] = message
newsign.data["language"] = language
newsign.data["language"] = L
newsign.data["type"] = 2 // artificial broadcast
if(!isnum(freq))
freq = text2num(freq)