From: terencehill Date: Mon, 23 May 2011 16:49:42 +0000 (+0200) Subject: Rename a function X-Git-Tag: xonotic-v0.5.0~224 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=54123c4b177edd0911f816a5a1cfba9e7bfde71b;p=xonotic%2Fxonotic-data.pk3dir.git Rename a function --- diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 0711fb677..4b68d37a5 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -4326,7 +4326,7 @@ string centerprint_messages[CENTERPRINT_MAX_MSGS]; float centerprint_msgID[CENTERPRINT_MAX_MSGS]; float centerprint_time[CENTERPRINT_MAX_MSGS]; -string strip_CPID(string s) +string msg_without_CPID(string s) { return substring(s, strstrofs(s, " ", 0) + 1, strlen(s)); } @@ -4356,7 +4356,7 @@ void centerprint(string strMessage) { if(centerprint_messages[j]) strunzone(centerprint_messages[j]); - centerprint_messages[j] == strzone(strip_CPID(strMessage)); + centerprint_messages[j] == strzone(msg_without_CPID(strMessage)); centerprint_time[j] = time; return; } @@ -4374,7 +4374,7 @@ void centerprint(string strMessage) if(centerprint_messages[cpm_index]) strunzone(centerprint_messages[cpm_index]); if (new_id) - centerprint_messages[cpm_index] = strzone(strip_CPID(strMessage)); + centerprint_messages[cpm_index] = strzone(msg_without_CPID(strMessage)); else centerprint_messages[cpm_index] = strzone(strMessage); centerprint_msgID[cpm_index] = new_id;