]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/preferences.cpp
* improved quake2 support by added a quake2 boolean to the CGameDescription class...
[xonotic/netradiant.git] / radiant / preferences.cpp
index 3090695e94ccb31c1baaee1d5f64f41e3e4caf7e..88fb4fe450c30e2ab4ff4e78afbdd974dd134647 100644 (file)
@@ -746,6 +746,18 @@ CGameDescription::CGameDescription(xmlDocPtr pDoc, const Str &GameFile)
 
   mGameFile = GameFile;
 
+  prop = (char*)xmlGetProp(pNode, (xmlChar*)"quake2");
+  if (prop == NULL)
+  {
+    // default
+    quake2 = false;
+  }
+  else
+  {
+    quake2 = true;
+    xmlFree(prop);
+  }
+
   prop = (char*)xmlGetProp(pNode, (xmlChar*)"basegame");
   if (prop == NULL)
   {