moved call to rng constructor to main()

This commit is contained in:
Max-Wilhelm Bruker 2010-09-23 15:43:39 +02:00
parent a5d73a9a60
commit e92840c849
3 changed files with 14 additions and 5 deletions

View file

@ -35,12 +35,14 @@
#include "carddatabase.h"
#include "settingscache.h"
#include "pixmapgenerator.h"
#include "rng_sfmt.h"
//Q_IMPORT_PLUGIN(qjpeg)
CardDatabase *db;
QTranslator *translator, *qtTranslator;
SettingsCache *settingsCache;
RNG_Abstract *rng;
void myMessageOutput(QtMsgType /*type*/, const char *msg)
{
@ -84,6 +86,7 @@ int main(int argc, char *argv[])
QCoreApplication::setOrganizationDomain("cockatrice.de");
QCoreApplication::setApplicationName("Cockatrice");
rng = new RNG_SFMT;
settingsCache = new SettingsCache;
db = new CardDatabase;
@ -125,6 +128,7 @@ int main(int argc, char *argv[])
delete db;
delete settingsCache;
delete rng;
PingPixmapGenerator::clear();
CountryPixmapGenerator::clear();
UserLevelPixmapGenerator::clear();