]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Bugfix for 0.5: Basically just allow drawing of larger centerprints ANYWAY instead...
authorSamual <samual@xonotic.org>
Mon, 29 Aug 2011 04:23:51 +0000 (00:23 -0400)
committerSamual <samual@xonotic.org>
Mon, 29 Aug 2011 04:23:51 +0000 (00:23 -0400)
qcsrc/client/hud.qc

index fc6164e6a0eec108a6e99927ce5556dea05dd66a..a1aae684f755e0aaa82f0ff5601d3f5fecbe1f11 100644 (file)
@@ -4580,11 +4580,12 @@ void HUD_CenterPrint (void)
                                                pos_y -= fontsize_y;
                                        else
                                                pos_y -= fontsize_y * CENTERPRINT_SPACING/2;
-                                       if (pos_y < panel_pos_y) // check if the next line can be shown
-                                       {
-                                               drawfontscale = '1 1 0';
-                                               return;
-                                       }
+                                       // NOTE: uncommented so as to not reject messages whenever they are "too large" -- This just continues drawing it anyway.
+                                       //if (pos_y < panel_pos_y) // check if the next line can be shown
+                                       //{
+                                       //      drawfontscale = '1 1 0';
+                                       //      return;
+                                       //}
                                }
                        }
                        current_msg_pos_y = pos_y; // save starting pos (first line) of the current message
@@ -4606,11 +4607,12 @@ void HUD_CenterPrint (void)
                                }
                                else
                                        pos_y += fontsize_y * CENTERPRINT_SPACING/2;
-                               if (!autocvar_hud_panel_centerprint_flip && pos_y > panel_pos_y + panel_size_y - fontsize_y) // check if the next line can be shown
-                               {
-                                       drawfontscale = '1 1 0';
-                                       return;
-                               }
+                               // NOTE: uncommented so as to not reject messages whenever they are "too large" -- This just continues drawing it anyway.
+                               //if (!autocvar_hud_panel_centerprint_flip && pos_y > panel_pos_y + panel_size_y - fontsize_y) // check if the next line can be shown
+                               //{
+                               //      drawfontscale = '1 1 0';
+                               //      return;
+                               //}
                        }
                }
                msg_size = pos_y - msg_size;