From 6ddee877c51cfb73115ca5f7e2289a77685c342b Mon Sep 17 00:00:00 2001
From: wolfy852 <wolfy852@hotmail.com>
Date: Sat, 25 Aug 2018 03:40:43 -0500
Subject: [PATCH] Expose NEWTICRATE and NEWTICRATERATIO to Lua

This should keep 70FPS-compatible scripts from throwing nil value errors.
---
 src/dehacked.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/dehacked.c b/src/dehacked.c
index 76a65fcc2f..cf42e7c1fe 100644
--- a/src/dehacked.c
+++ b/src/dehacked.c
@@ -7316,6 +7316,8 @@ struct {
 	{"CODEBASE",CODEBASE}, // or what release of SRB2 this is.
 	{"VERSION",VERSION}, // Grab the game's version!
 	{"SUBVERSION",SUBVERSION}, // more precise version number
+	{"NEWTICRATE",NEWTICRATE}, // TICRATE*NEWTICRATERATIO
+	{"NEWTICRATERATIO",NEWTICRATERATIO},
 
 	// Special linedef executor tag numbers!
 	{"LE_PINCHPHASE",LE_PINCHPHASE}, // A boss entered pinch phase (and, in most cases, is preparing their pinch phase attack!)
-- 
GitLab