We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ded791 commit 21107b4Copy full SHA for 21107b4
src/r_skydefs.c
@@ -83,7 +83,7 @@ static bool ParseSkyTex(cJSON *json, skytex_t *out)
83
out->scrollx = (fixed_t)(scrollx->valuedouble * (1.0 / TICRATE) * FRACUNIT);
84
out->scrolly = (fixed_t)(scrolly->valuedouble * (1.0 / TICRATE) * FRACUNIT);
85
out->scalex = (fixed_t)(scalex->valuedouble * FRACUNIT);
86
- out->scaley = (fixed_t)(1.0 / scaley->valuedouble * FRACUNIT);
+ out->scaley = (scaley->valuedouble ? (fixed_t)(1.0 / scaley->valuedouble * FRACUNIT) : FRACUNIT);
87
return true;
88
}
89
0 commit comments