Exclude mines in non-Classic reduction in spread.
This commit is contained in:
parent
781b5c7f81
commit
44a536cd00
|
@ -217,12 +217,14 @@ void collectable_add(float x, float y, int type, int value, int life)
|
||||||
collectable->active = 1;
|
collectable->active = 1;
|
||||||
collectable->x = x;
|
collectable->x = x;
|
||||||
collectable->y = y;
|
collectable->y = y;
|
||||||
|
collectable->dx = RANDRANGE(-100, 100) / 100.;
|
||||||
|
collectable->dy = RANDRANGE(-100, 100) / 100.;
|
||||||
|
|
||||||
collectable->dx = RANDRANGE(-100, 100);
|
if (game.difficulty != DIFFICULTY_ORIGINAL && type != P_MINE)
|
||||||
collectable->dx /= (game.difficulty == DIFFICULTY_ORIGINAL ? 100. : 200.);
|
{
|
||||||
|
collectable->dx /= 2;
|
||||||
collectable->dy = RANDRANGE(-100, 100);
|
collectable->dy /= 2;
|
||||||
collectable->dy /= (game.difficulty == DIFFICULTY_ORIGINAL ? 100. : 200.);
|
}
|
||||||
|
|
||||||
collectable->type = type;
|
collectable->type = type;
|
||||||
collectable->value = value;
|
collectable->value = value;
|
||||||
|
|
Loading…
Reference in New Issue