mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-24 16:41:48 +00:00
- Added a limit to broadcast messages. Messages will now cut off at 512.
- Facehuggers will now let you open the bag even if you're wearing facehugger proof gear. - Added some sanitizing to signal(). git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5756 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -251,6 +251,7 @@ datum/signal
|
||||
|
||||
|
||||
proc/signaler(var/freq = 1459, var/code = 30)
|
||||
|
||||
if(isnum(freq) && isnum(code))
|
||||
|
||||
var/obj/machinery/telecomms/server/S = data["server"]
|
||||
@@ -266,6 +267,9 @@ datum/signal
|
||||
|
||||
freq = sanitize_frequency(freq)
|
||||
|
||||
code = round(code)
|
||||
code = Clamp(code, 0, 100)
|
||||
|
||||
var/datum/signal/signal = new
|
||||
signal.source = S
|
||||
signal.encryption = code
|
||||
|
||||
Reference in New Issue
Block a user