From 35dbe965e1c611fae087573986ea3e6dd188b418 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Mon, 25 Dec 2017 12:36:37 +0200 Subject: [PATCH] Fixed tics to seconds conversion, now in ZScript Stat screens display correct time values --- wadsrc/static/zscript/base.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wadsrc/static/zscript/base.txt b/wadsrc/static/zscript/base.txt index 89eea6bdeb..c0373fab05 100644 --- a/wadsrc/static/zscript/base.txt +++ b/wadsrc/static/zscript/base.txt @@ -417,8 +417,7 @@ class Thinker : Object native play static clearscope int Tics2Seconds(int tics) { - // This compensates for one tic being slightly less than 1/35 of a second. - return int(tics * (0.98 / TICRATE)); + return int(tics / TICRATE); } }