]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix #2937 "Division by 0 error if starting the match while zoomed in"
authorterencehill <piuntn@gmail.com>
Fri, 11 Oct 2024 00:07:02 +0000 (02:07 +0200)
committerterencehill <piuntn@gmail.com>
Fri, 11 Oct 2024 00:07:02 +0000 (02:07 +0200)
qcsrc/client/main.qh

index 6ecc2e036973fe2afb5f848ab6cb1e470386c1ac..698c70b2d94495073bd89cd238ed560db54ae1f2 100644 (file)
@@ -116,7 +116,7 @@ bool spectatorbutton_zoom;
 bool observe_blocked;
 bool button_attack2;
 
-float current_viewzoom;
+float current_viewzoom = 1;
 float zoomin_effect;
 bool warmup_stage;