View Single Post
Re: code to get the illumination at any point on the map
Old
  (#47)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,425
Join Date: Apr 2004
Default Re: code to get the illumination at any point on the map - 24-03-2012

Do You mean this function can be written so:
Code:
inline const bool IsSoftwareDrawingMode (void)
{
    #ifdef _LINUX
        return true;    // Always software rendering mode....
    #else    // ifdef _LINUX
        static const bool KWoMode = (IS_DEDICATED_SERVER () || GetModuleHandle ("sw.dll") != NULL);

        return KWoMode;
    #endif    // ifndef _LINUX
}
and it will work the same? So what was the reason it was named the same inside as the global inline const? Just to confuse a noob in C++ programming?
  
Reply With Quote