Merge pull request #1754 from tigercat2000/log_to_dd

New proc to replace world.log <<, log_to_dd()
This commit is contained in:
Mark van Alphen
2015-08-16 17:49:00 +02:00
37 changed files with 107 additions and 96 deletions
+1 -1
View File
@@ -1226,7 +1226,7 @@ steam.start() -- spawns the effect
var/r = rand(0,255)
var/g = rand(0,255)
var/b = rand(0,255)
world.log << "Colour , [r],[g],[b]"
log_to_dd("Colour , [r],[g],[b]")
I.Blend(rgb(r,g,b),ICON_MULTIPLY)
src.icon = I
playsound(src.loc, "sparks", 100, 1)
+1 -1
View File
@@ -144,7 +144,7 @@
var/timeofhour = TimeOfHour
var/took = round((start <= timeofhour) ? ((timeofhour-start)/10) : ((timeofhour-(start-36000))/10), 0.01)
//You need to press the DebugGame verb to see these now....they were getting annoying and we've collected a fair bit of data. Just -test- changes to explosion code using this please so we can compare
if(Debug2) world.log << "## DEBUG: Explosion([x0],[y0],[z0])(d[devastation_range],h[heavy_impact_range],l[light_impact_range]): Took [took] seconds."
if(Debug2) log_to_dd("## DEBUG: Explosion([x0],[y0],[z0])(d[devastation_range],h[heavy_impact_range],l[light_impact_range]): Took [took] seconds.")
//Machines which report explosions.
for(var/i,i<=doppler_arrays.len,i++)
@@ -60,7 +60,7 @@
frequency = sanitize_frequency(frequency, maxf)
// The max freq is higher than a regular headset to decrease the chance of people listening in, if you use the higher channels.
else if (frequency < 1441 || frequency > maxf)
//world.log << "[src] ([type]) has a frequency of [frequency], sanitizing."
//log_to_dd("[src] ([type]) has a frequency of [frequency], sanitizing.")
frequency = sanitize_frequency(frequency, maxf)
set_frequency(frequency)