]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/net_notice.qc
Merge remote-tracking branch 'origin/master' into samual/mutator_ctf
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / net_notice.qc
index a1d8e592e6e459f73200cdbe466e5d311d9c4a34..869a44bc8bf6b2253a85f4d07227f8c4bce23bc8 100644 (file)
@@ -51,8 +51,8 @@ void SUB_Remove()
 void cl_notice_read()
 {
     entity _notice;
-    float _done;
-    float _modal;
+    //float _done;
+    //float _modal;
     _notice = spawn();
     _notice.classname = "sv_notice";
     _notice.netname = strzone(ReadString());
@@ -64,7 +64,7 @@ float cl_notice_run()
 {
     entity _notes;
     string _notice;
-    float c, m = FALSE;
+    float m = FALSE;
     
     _notes = findchain(classname, "sv_notice");
     if(!_notes)
@@ -86,13 +86,13 @@ float cl_notice_run()
     
     #define OUT(s,z) drawcolorcodedstring(v3, s, '1 1 0' * z, 1, DRAWFLAG_NORMAL); v3_y += z + 4
     
-    OUT("^1Server notices:", 32);
+    OUT(_("^1Server notices:"), 32);
     
     //drawcolorcodedstring(v1 + '5 5 0', "^1Server notices:", '32 32 0', 1, DRAWFLAG_NORMAL);
     while(_notes)
     {
    
-        _notice = sprintf("^7%s (^3%d sec left)", _notes.netname , rint(_notes.alpha - time));
+        _notice = sprintf(_("^7%s (^3%d sec left)"), _notes.netname , rint(_notes.alpha - time));
         OUT(_notice, 16);
 
         if(_notes.skin)