1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Enable key repeats. Useful for the map selection screen.

This commit is contained in:
Frank Zago
2009-05-29 03:03:19 +00:00
parent 94b8fa4f9d
commit 566a99932b

View File

@@ -153,6 +153,8 @@ int main(int argc, char** argv)
tlog0<<"Initialization CPreGame (together): "<<tmh.getDif()<<std::endl; tlog0<<"Initialization CPreGame (together): "<<tmh.getDif()<<std::endl;
tlog0<<"Initialization of VCMI (together): "<<total.getDif()<<std::endl; tlog0<<"Initialization of VCMI (together): "<<total.getDif()<<std::endl;
SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL);
cgi->musich->playMusic(musicBase::mainMenu, -1); cgi->musich->playMusic(musicBase::mainMenu, -1);
StartInfo *options = new StartInfo(cpg->runLoop()); StartInfo *options = new StartInfo(cpg->runLoop());