]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix div by zero
authorFruitieX <rasse@rasse-lappy.localdomain>
Sun, 13 Jun 2010 10:53:07 +0000 (13:53 +0300)
committerFruitieX <rasse@rasse-lappy.localdomain>
Sun, 13 Jun 2010 10:53:07 +0000 (13:53 +0300)
qcsrc/client/hud.qc

index 5bb8307d6334a1b4abd48bdbb8fea4ab0dbb702f..27f802b35df5e09c8eb7579861762c8a1395017b 100644 (file)
@@ -669,7 +669,7 @@ vector HUD_Panel_GetMinSize(float id)
                        mySize_y = 0.5898; // 0.5898 * width, reason: bg has weird dimensions...
                        break;
        }
-       if(!mySize_x)
+       if(!mySize_x && mySize_y)
                mySize_x = 1/mySize_y;
        return mySize;
 }