]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Rename .gametype_description to .m_description
authorotta8634 <k9wolf@pm.me>
Tue, 7 Jan 2025 14:50:14 +0000 (22:50 +0800)
committerotta8634 <k9wolf@pm.me>
Tue, 7 Jan 2025 14:50:14 +0000 (22:50 +0800)
.m_description is already used elsewhere.

qcsrc/common/mapinfo.qc
qcsrc/common/mapinfo.qh

index 677a5f8f7af52f03daa6db8b4cf667144094483e..db4296196b85facd4b6a2b33cb8ed3b498798f61 100644 (file)
@@ -650,7 +650,7 @@ Gametype MapInfo_Type_FromString(string gtype, bool dowarn, bool is_q3compat)
 
 string MapInfo_Type_Description(Gametype t)
 {
-       return t ? t.gametype_description : "";
+       return t ? t.m_description : "";
 }
 
 string MapInfo_Type_ToString(Gametype t)
index e1368871ec070e556a1c606c9ca55235a5c6c869..dc2e83b48946f2736da0f7e7ce5891a0feaea385 100644 (file)
@@ -53,7 +53,7 @@ CLASS(Gametype, Object)
     /** game type defaults */
     ATTRIB(Gametype, model2, string);
     /** game type description */
-    ATTRIB(Gametype, gametype_description, string);
+    ATTRIB(Gametype, m_description, string);
     /** game type priority in random selections */
     ATTRIB(Gametype, m_priority, int, 0);
 #ifdef CSQC
@@ -95,7 +95,7 @@ CLASS(Gametype, Object)
     METHOD(Gametype, describe, string(Gametype this))
     {
         TC(Gametype, this);
-        return this.gametype_description;
+        return this.m_description;
     }
 
     METHOD(Gametype, display, void(Gametype this, void(string name, string icon) returns))
@@ -112,7 +112,7 @@ CLASS(Gametype, Object)
         this.team = (gflags & GAMETYPE_FLAG_TEAMPLAY);
         this.m_mutators = cons(sname, mutators);
         this.model2 = defaults;
-        this.gametype_description = gdescription;
+        this.m_description = gdescription;
         this.frags = (gflags & GAMETYPE_FLAG_USEPOINTS);
         this.m_priority = ((gflags & GAMETYPE_FLAG_PREFERRED) ? 2 : ((gflags & GAMETYPE_FLAG_PRIORITY) ? 1 : 0));
         this.m_hidelimits = (gflags & GAMETYPE_FLAG_HIDELIMITS);