Changeset f3dfead in network-game for server/server.cpp


Ignore:
Timestamp:
Nov 7, 2014, 12:28:30 AM (10 years ago)
Author:
Dmitry Portnoy <dmp1488@…>
Branches:
master
Children:
306758e
Parents:
5037b4b
Message:

Load the db settings file only once instead of many times

File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/server.cpp

    r5037b4b rf3dfead  
    6565   map<unsigned int, Projectile> mapProjectiles;
    6666   map<string, Game*> mapGames;
     67   DataAccess da;
    6768   ofstream outputLog;
    6869
     
    181182         map<string, Game*>::iterator itGames;
    182183         Game* game = NULL;
    183          DataAccess da;
    184184
    185185         for (itGames = mapGames.begin(); itGames != mapGames.end();) {
Note: See TracChangeset for help on using the changeset viewer.