From 38c5efa1ed15ec8440e0d7ec1ca485407a391e85 Mon Sep 17 00:00:00 2001 From: otta8634 Date: Tue, 7 Jan 2025 22:50:14 +0800 Subject: [PATCH] Rename .gametype_description to .m_description .m_description is already used elsewhere. --- qcsrc/common/mapinfo.qc | 2 +- qcsrc/common/mapinfo.qh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/qcsrc/common/mapinfo.qc b/qcsrc/common/mapinfo.qc index 677a5f8f7..db4296196 100644 --- a/qcsrc/common/mapinfo.qc +++ b/qcsrc/common/mapinfo.qc @@ -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) diff --git a/qcsrc/common/mapinfo.qh b/qcsrc/common/mapinfo.qh index e1368871e..dc2e83b48 100644 --- a/qcsrc/common/mapinfo.qh +++ b/qcsrc/common/mapinfo.qh @@ -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); -- 2.39.5