]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/item/image.c
Merge remote-tracking branch 'origin/zykure/playerstats' into samual/combined_updates
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / item / image.c
index d7c0c90f511c5959731df060dd75eae246192f34..8ae17dbcc1a2558a6250489e2bb2e7be378a4a77 100644 (file)
@@ -56,7 +56,7 @@ void Image_draw(entity me)
 }
 void Image_updateAspect(entity me)
 {
-       float asp;
+       float asp = 0;
        if(me.size_x <= 0 || me.size_y <= 0)
                return;
        if(me.forcedAspect == 0)
@@ -66,9 +66,9 @@ void Image_updateAspect(entity me)
        }
        else
        {
+               vector sz = '0 0 0';
                if(me.forcedAspect < 0)
                {
-                       vector sz;
                        sz = draw_PictureSize(me.src);
                        asp = sz_x / sz_y;
                }