mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Atmos now starts with nitrous oxide in storage tank.
Radio was optimized even more. Still have some reserves. Restored admin verb "Radio Report". It shows some signs of errors on the map, but I am too tired to fix it now. Optimized player login (that "400000 calls of new_player/Move" bug). Various optimizations and fixes in radio code. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1046 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -95,7 +95,7 @@
|
||||
set_frequency(frequency)
|
||||
|
||||
receive_signal(datum/signal/signal)
|
||||
if(signal.data["tag"] && (signal.data["tag"] != id))
|
||||
if(!signal.data["tag"] || (signal.data["tag"] != id) || !signal.data["command"])
|
||||
return 0
|
||||
|
||||
switch(signal.data["command"])
|
||||
@@ -110,6 +110,7 @@
|
||||
|
||||
if("inject")
|
||||
spawn inject()
|
||||
return
|
||||
|
||||
if("set_volume_rate")
|
||||
var/number = text2num(signal.data["parameter"])
|
||||
@@ -117,8 +118,14 @@
|
||||
|
||||
volume_rate = number
|
||||
|
||||
if(signal.data["tag"])
|
||||
spawn(5) broadcast_status()
|
||||
if("status")
|
||||
//broadcast_status
|
||||
|
||||
else
|
||||
log_admin("DEBUG \[[world.timeofday]\]: outlet_injector/receive_signal: unknown command \"[signal.data["command"]]\"\n[signal.debug_print()]")
|
||||
return
|
||||
spawn(5)
|
||||
broadcast_status()
|
||||
update_icon()
|
||||
|
||||
hide(var/i) //to make the little pipe section invisible, the icon changes.
|
||||
|
||||
Reference in New Issue
Block a user