fix tick rate exploit
This commit is contained in:
parent
c9309834ce
commit
2b95da8d10
|
@ -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","");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue