]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix compiler warnings
authorterencehill <piuntn@gmail.com>
Tue, 6 Aug 2013 22:42:02 +0000 (00:42 +0200)
committerterencehill <piuntn@gmail.com>
Tue, 6 Aug 2013 22:42:02 +0000 (00:42 +0200)
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;
                }