]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/net_notice.qc
Fix compilation with gmqcc.
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / net_notice.qc
index 35699480ede524e58f2ded7425dd7a8b012c0731..625e091dcc68994ca9a3e5bdd8f4a327f3a1cff9 100644 (file)
@@ -15,7 +15,7 @@ void sv_notice_join_think()
 void sv_notice_join()
 {
     // to-do: make sv_join_notices support per-entry times
-    if(!autocvar_sv_join_notices || autocvar_sv_join_notices == "")      
+    if(autocvar_sv_join_notices == "")
         return;
 
     entity n = spawn();
@@ -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)
@@ -72,7 +72,7 @@ float cl_notice_run()
     #define M1 30
     #define M2 10
     
-    vector v1, v2, v3;
+    vector v1, v2 = '0 0 0', v3;
     v1 = '1 1 0' * M1;
     v2_x = vid_conwidth - (2 * M1);
     v2_y = vid_conheight - (2 * M1);