]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
also support \ path name separator. So much for "all systems".
authordivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Thu, 5 Mar 2009 11:28:15 +0000 (11:28 +0000)
committerdivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Thu, 5 Mar 2009 11:28:15 +0000 (11:28 +0000)
git-svn-id: svn://svn.icculus.org/netradiant/trunk@211 61c419a2-8eb2-4b30-bcec-8cead039b335

radiant/environment.cpp

index 99c6971a07aac05f34d8756eaab316d9d39b61c9..0656f8db8c447e1e07af85b04c5bb45d13df52a2 100644 (file)
@@ -127,7 +127,7 @@ void gamedetect()
          // we found nothing
          // go backwards
          --p;
-         while(p != buf && *p != '/')
+         while(p != buf && *p != '/' && *p != '\\')
            --p;
        }
   }