mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-16 14:47:39 +00:00
silenced the uninitialized variable warning
This commit is contained in:
2
rug.cpp
2
rug.cpp
@@ -410,7 +410,7 @@ void buildTorusRug() {
|
|||||||
|
|
||||||
ld factor = sqrt(ld(solution.second.d2()) / solution.first.d2());
|
ld factor = sqrt(ld(solution.second.d2()) / solution.first.d2());
|
||||||
|
|
||||||
ld xfactor, yfactor;
|
ld xfactor = 0, yfactor = 0;
|
||||||
|
|
||||||
Xprintf("factor = %lf\n", factor);
|
Xprintf("factor = %lf\n", factor);
|
||||||
if(factor <= 2.05) factor = 2.2;
|
if(factor <= 2.05) factor = 2.2;
|
||||||
|
Reference in New Issue
Block a user