Simplify bitshift divisions/multiplications
This commit is contained in:
parent
97d7171123
commit
1d84156509
24 changed files with 342 additions and 342 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue