[Orxonox-commit 3445] r8132 - code/branches/kicklib/src

rgrieder at orxonox.net rgrieder at orxonox.net
Sat Mar 26 21:55:08 CET 2011


Author: rgrieder
Date: 2011-03-26 21:55:08 +0100 (Sat, 26 Mar 2011)
New Revision: 8132

Modified:
   code/branches/kicklib/src/Orxonox.cc
Log:
Unhacked a hack: it's actually not really a hack, but normal behaviour ;)

Modified: code/branches/kicklib/src/Orxonox.cc
===================================================================
--- code/branches/kicklib/src/Orxonox.cc	2011-03-26 20:51:00 UTC (rev 8131)
+++ code/branches/kicklib/src/Orxonox.cc	2011-03-26 20:55:08 UTC (rev 8132)
@@ -62,15 +62,16 @@
     {
 #ifndef ORXONOX_USE_WINMAIN
 
-// On Apples, the kernel supplies a second argument, which we have to circumvent
 #ifdef ORXONOX_PLATFORM_APPLE
-# define MAC_ARGC_HACK 2
+        // On Apples, the kernel supplies a second argument, which we have to circumvent
+        const int firstArgument = 2;
 #else
-# define MAC_ARGC_HACK 1
+        // 0 is the execution path
+        const int firstArgument = 1;
 #endif
     
         std::string strCmdLine;
-        for (int i = MAC_ARGC_HACK; i < argc; ++i)
+        for (int i = firstArgument; i < argc; ++i)
             strCmdLine = strCmdLine + argv[i] + ' ';
 #endif
 




More information about the Orxonox-commit mailing list