Adds ticklag to be a config setting.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3491 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
VivianFoxfoot@gmail.com
2012-04-22 01:19:10 +00:00
parent e582b627f7
commit 13ff994f64
4 changed files with 12 additions and 3 deletions
+4
View File
@@ -32,6 +32,7 @@
var/Tensioner_Active = 0 // If the tensioner is running.
var/allow_Metadata = 0 // Metadata is supported.
var/popup_admin_pm = 0 //adminPMs to non-admins show in a pop-up 'reply' window when set to 1.
var/Ticklag = 0.9
var/list/mode_names = list()
var/list/modes = list() // allowed modes
@@ -289,6 +290,9 @@
if("useircbot")
useircbot = 1
if("ticklag")
Ticklag = text2num(value)
else
diary << "Unknown setting in configuration: '[name]'"
+1 -1
View File
@@ -45,7 +45,7 @@ datum/controller/game_controller
if(!tension_master)
tension_master = new /datum/tension()
world.tick_lag = 0.9
world.tick_lag = config.Ticklag
setup_objects()
+1 -1
View File
@@ -9,7 +9,7 @@
if(!src.mob) return
if(src.holder.rank in list("Game Admin", "Game Master"))
var/newtick = input("Sets a new tick lag. Please don't mess with this too much! The stable, time-tested ticklag value is 0.9",, 0.9) as num|null
var/newtick = input("Sets a new tick lag. Please don't mess with this too much! The stable, time-tested ticklag value is 0.9","Lag of Tick", world.tick_lag) as num|null
//I've used ticks of 2 before to help with serious singulo lags
if(newtick && newtick <= 2 && newtick > 0)
log_admin("[key_name(src)] has modified world.tick_lag to [newtick]", 0)
+6 -1
View File
@@ -143,4 +143,9 @@ FEATURE_OBJECT_SPELL_SYSTEM
#ALLOW_HOLIDAYS
##Remove the # mark if you are going to use the SVN irc bot to relay adminhelps
#USEIRCBOT
#USEIRCBOT
##Defines the ticklag for the world. 0.9 is the normal one, 0.6 is smoother.
TICKLAG 0.9