Simplify bitshift divisions/multiplications

This commit is contained in:
Jmgr 2021-04-12 22:23:10 +01:00 committed by Anders Jenbo
commit 1d84156509
24 changed files with 342 additions and 342 deletions

View file

@ -700,7 +700,7 @@ void Theme_Treasure(int t)
if (rv == 0 || rv >= treasrnd[leveltype - 1] - 2) {
i = ItemNoFlippy();
if (rv >= treasrnd[leveltype - 1] - 2 && leveltype != DTYPE_CATHEDRAL) {
items[i]._ivalue >>= 1;
items[i]._ivalue /= 2;
}
}
}