From: terencehill Date: Wed, 7 Feb 2024 21:53:39 +0000 (+0100) Subject: Remove a few dangling semicolons X-Git-Url: http://git.xonotic.org/?a=commitdiff_plain;h=4ffc8ff95dc8cd7d0236c369e1794e81843c70c7;p=xonotic%2Fxonotic-data.pk3dir.git Remove a few dangling semicolons --- diff --git a/qcsrc/common/mapinfo.qh b/qcsrc/common/mapinfo.qh index 952274a73..b8eefcea3 100644 --- a/qcsrc/common/mapinfo.qh +++ b/qcsrc/common/mapinfo.qh @@ -123,7 +123,7 @@ ENDCLASS(Gametype) REGISTRY(Gametypes, 32) REGISTER_REGISTRY(Gametypes) -REGISTRY_SORT(Gametypes); +REGISTRY_SORT(Gametypes) REGISTRY_CHECK(Gametypes) REGISTRY_DEFINE_GET(Gametypes, NULL) diff --git a/qcsrc/common/notifications/all.qh b/qcsrc/common/notifications/all.qh index 00bd94bb7..f4c25968c 100644 --- a/qcsrc/common/notifications/all.qh +++ b/qcsrc/common/notifications/all.qh @@ -714,7 +714,7 @@ string notif_arg_item_wepammo(float f1, float f2) REGISTRY(Notifications, BITS(11)) REGISTER_REGISTRY(Notifications) -REGISTRY_SORT(Notifications); +REGISTRY_SORT(Notifications) REGISTRY_DEFINE_GET(Notifications, NULL) STATIC_INIT(Notifications) { FOREACH(Notifications, true, it.m_id = i); } diff --git a/qcsrc/common/resources/resources.qh b/qcsrc/common/resources/resources.qh index fa7ce8b73..28ad1f82a 100644 --- a/qcsrc/common/resources/resources.qh +++ b/qcsrc/common/resources/resources.qh @@ -49,8 +49,8 @@ STATIC_INIT(default_order_resources) } #endif -REGISTRY_SORT(Resources); -REGISTRY_CHECK(Resources); +REGISTRY_SORT(Resources) +REGISTRY_CHECK(Resources) REGISTRY_DEFINE_GET(Resources, NULL) STATIC_INIT(Resources_renumber) { FOREACH(Resources, true, it.m_id = i); } diff --git a/qcsrc/common/scores.qh b/qcsrc/common/scores.qh index 8a01893f1..8f22b5c75 100644 --- a/qcsrc/common/scores.qh +++ b/qcsrc/common/scores.qh @@ -3,11 +3,11 @@ #define MAX_SCORE 64 #define REGISTER_SP(id) REGISTER(Scores, SP, id, m_id, new_pure(PlayerScoreField)) -REGISTRY(Scores, MAX_SCORE); +REGISTRY(Scores, MAX_SCORE) REGISTER_REGISTRY(Scores) // do not sort alphabetically, player sort priority is based on score registration order -//REGISTRY_SORT(Scores); -REGISTRY_CHECK(Scores); +//REGISTRY_SORT(Scores) +REGISTRY_CHECK(Scores) REGISTRY_DEFINE_GET(Scores, NULL) STATIC_INIT(Scores_renumber) { FOREACH(Scores, true, it.m_id = i); } diff --git a/qcsrc/lib/registry.qh b/qcsrc/lib/registry.qh index 5d36e1a39..be67847a4 100644 --- a/qcsrc/lib/registry.qh +++ b/qcsrc/lib/registry.qh @@ -200,7 +200,7 @@ void Registry_send(string id, string hash); string h = REGISTRY_HASH(id) = strzone(digest_hex("MD4", s)); \ LOG_DEBUGF(#id ": %s\n[%s]", h, s); \ } \ - void Registry_check(string r, string sv) \ + void Registry_check(string r, string sv) /* called by CSQC */ \ { \ if (r == #id) \ { \ @@ -211,7 +211,7 @@ void Registry_send(string id, string hash); } \ } \ } \ - void Registry_send_all() { Registry_send(#id, REGISTRY_HASH(id)); } \ + void Registry_send_all() { Registry_send(#id, REGISTRY_HASH(id)); } /* called by SVQC */ \ #define _REGISTER_REGISTRY(id, str) \ ACCUMULATE_FUNCTION(__static_init_1, Register##id) \