cast style tidbit

This commit is contained in:
nhmall
2025-03-05 10:29:50 -05:00
parent fd49242015
commit 78ca37290b
+1 -1
View File
@@ -269,7 +269,7 @@ mk_artifact(
non-weapons, which always have a gen_spe of 0, and for many non-weapons, which always have a gen_spe of 0, and for many
weapons, too.) The result is clamped into the "normal" range to weapons, too.) The result is clamped into the "normal" range to
prevent an outside chance of +12 artifacts generating. */ prevent an outside chance of +12 artifacts generating. */
new_spe = (int)otmp->spe + a->gen_spe; new_spe = (int) otmp->spe + a->gen_spe;
if (new_spe >= -10 && new_spe < 10) if (new_spe >= -10 && new_spe < 10)
otmp->spe = new_spe; otmp->spe = new_spe;
} }