[Bug 52436] New: gametype templates not loaded

ROCHET Sylvain <[email protected]>
Newsgroups gmane.comp.kde.devel.atlantik
Message-ID <[email protected]>
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
     
http://bugs.kde.org/show_bug.cgi?id=52436     
           Summary: gametype templates not loaded
           Product: atlantik
           Version: unspecified
          Platform: Debian testing
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: monopd
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Version:           0.6.2 (using KDE KDE 3.0.99)
Installed from:    Debian stable Packages
OS:          Linux

hello,


I have founded a big nasty bug in monopd :)

look text between /* ... */ (in server.cc, line 423)

-------------8<-------------8<-------------8<-------------8<-------------8<------------
void MonopdServer::loadConfig()
{
         FILE *f = fopen(MONOPD_CONFIGDIR "/monopd.conf", "r");
         if (!f)
         {
                 syslog(LOG_ERR, "cannot open config file: %s", MONOPD_CONFIGDIR "/monopd.conf");
                 return;

             /* if no config file is founded -> abort, I haven't config file on
                my system because default value is good for me */
         }

       [.....]

       /* consequentially template for games are not read, but you can
          start a game because gametype file is rereaded */

         loadGameTemplates();
}
-------------8<-------------8<-------------8<-------------8<-------------8<------------


I have succefully fix this bug if a put loadGameTemplates(); in the start of
MonopdServer::loadConfig()...


    -- gradator --
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.