fix tick rate exploit

This commit is contained in:
tildearrow 2024-04-23 13:36:32 -05:00
parent c9309834ce
commit 2b95da8d10

View file

@ -562,6 +562,9 @@ void DivEngine::initSongWithDesc(const char* description, bool inBase64, bool ol
// extra attributes
song.subsong[0]->hz=c.getDouble("tickRate",60.0);
if (song.subsong[0]->hz<1.0) song->subsong[0]->hz=1.0;
if (song.subsong[0]->hz>999.0) song->subsong[0]->hz=999.0;
song.author=getConfString("defaultAuthorName","");
}