From a81aa191f908108ee6a3c6be887b4608b9aa404c Mon Sep 17 00:00:00 2001 From: Charlie <69320440+hal9000PR@users.noreply.github.com> Date: Tue, 5 Apr 2022 14:18:12 +0100 Subject: [PATCH] Sets the default FPS to 63 (#17564) * default FPS to 63 * SQL updates * smallint(4) --- SQL/paradise_schema.sql | 2 +- SQL/updates/34-35.sql | 4 ++++ code/__DEFINES/misc.dm | 2 +- code/modules/client/preference/preferences.dm | 2 +- config/example/config.toml | 2 +- 5 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 SQL/updates/34-35.sql diff --git a/SQL/paradise_schema.sql b/SQL/paradise_schema.sql index 18f14aaa633..f5b9fea6e7f 100644 --- a/SQL/paradise_schema.sql +++ b/SQL/paradise_schema.sql @@ -277,7 +277,7 @@ CREATE TABLE `player` ( `volume_mixer` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL, `lastchangelog` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0', `exp` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `clientfps` smallint(4) DEFAULT '0', + `clientfps` smallint(4) DEFAULT '63', `atklog` smallint(4) DEFAULT '0', `fuid` bigint(20) DEFAULT NULL, `fupdate` smallint(4) DEFAULT '0', diff --git a/SQL/updates/34-35.sql b/SQL/updates/34-35.sql new file mode 100644 index 00000000000..074ebc13e04 --- /dev/null +++ b/SQL/updates/34-35.sql @@ -0,0 +1,4 @@ +# Updates DB from 34 to 35 -hal9000PR +# Changes DB default for clientFPS to 63 + +ALTER TABLE `player` CHANGE COLUMN `clientfps` `clientfps` smallint(4) DEFAULT '63' AFTER `exp`; diff --git a/code/__DEFINES/misc.dm b/code/__DEFINES/misc.dm index c38e5f8343a..a96bdf33ad9 100644 --- a/code/__DEFINES/misc.dm +++ b/code/__DEFINES/misc.dm @@ -367,7 +367,7 @@ #define INVESTIGATE_BOMB "bombs" // The SQL version required by this version of the code -#define SQL_VERSION 34 +#define SQL_VERSION 35 // Vending machine stuff #define CAT_NORMAL 1 diff --git a/code/modules/client/preference/preferences.dm b/code/modules/client/preference/preferences.dm index f5bacbf6ccd..05edcd89c1c 100644 --- a/code/modules/client/preference/preferences.dm +++ b/code/modules/client/preference/preferences.dm @@ -72,7 +72,7 @@ GLOBAL_LIST_INIT(special_role_times, list( //minimum age (in days) for accounts var/sound = SOUND_DEFAULT var/UI_style_color = "#ffffff" var/UI_style_alpha = 255 - var/clientfps = 0 + var/clientfps = 63 var/atklog = ATKLOG_ALL var/fuid // forum userid diff --git a/config/example/config.toml b/config/example/config.toml index d5a36268f6f..40f66069758 100644 --- a/config/example/config.toml +++ b/config/example/config.toml @@ -145,7 +145,7 @@ ipc_screens = [ # Enable/disable the database on a whole sql_enabled = false # SQL version. If this is a mismatch, round start will be delayed -sql_version = 34 +sql_version = 35 # SQL server address. Can be an IP or DNS name sql_address = "127.0.0.1" # SQL server port