From 89cf8fd1123388a393decfada1fb36f304d3c3fe Mon Sep 17 00:00:00 2001 From: Kyle Spier-Swenson Date: Sat, 28 Nov 2015 00:08:28 -0800 Subject: [PATCH] Removes spawn(rand(10,150)) from client database syncing This was a shitty way to do this, and the overhead from spawn() makes it not worth it now that the database is local to the server. --- code/modules/client/client procs.dm | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/code/modules/client/client procs.dm b/code/modules/client/client procs.dm index 363ef38f616..ec3f72d6e59 100644 --- a/code/modules/client/client procs.dm +++ b/code/modules/client/client procs.dm @@ -179,14 +179,8 @@ var/next_external_rsc = 0 else if (isnum(player_age) && player_age < config.notify_new_player_age) message_admins("New user: [key_name_admin(src)] just connected with an age of [player_age] day[(player_age==1?"":"s")]") - - - if (!ticker || ticker.current_state == GAME_STATE_PREGAME) - spawn (rand(10,150)) - if (src) - sync_client_with_db() - else - sync_client_with_db() + + sync_client_with_db() send_resources()