diff --git a/src/aliens.cpp b/src/aliens.cpp index 588d5f4..6f6c48f 100644 --- a/src/aliens.cpp +++ b/src/aliens.cpp @@ -233,8 +233,11 @@ bool addAlien() randEnemy = CD_SLAVETRANSPORT; } - if ((rand() % 6) == 0) - randEnemy = CD_TRANSPORTSHIP; + if (currentGame.area != MAX_MISSIONS - 1) + { + if ((rand() % 6) == 0) + randEnemy = CD_TRANSPORTSHIP; + } } delete[] alienArray; diff --git a/src/collectable.cpp b/src/collectable.cpp index 3c2ab2d..22e7cb9 100644 --- a/src/collectable.cpp +++ b/src/collectable.cpp @@ -61,18 +61,20 @@ void addCollectable(float x, float y, int type, int value, int life) if (type == P_SUPER) value = 1; - /* - Cash is rare on interceptions. Stops people from point leeching(!) - */ - if ((currentGame.area == MAX_MISSIONS - 1) && (type == P_CASH)) - { - if (rand() % 10 > 0) - return; - } - if (value == 0) return; // don't bother! + /* + No cash, powerups, or ammo on interceptions. Stops point leeching(!) + */ + if ((currentGame.area == MAX_MISSIONS - 1) && + ((type == P_CASH) || (type == P_PLASMA_AMMO) || (type == P_ROCKET) || + (type == P_PLASMA_DAMAGE) || (type == P_PLASMA_SHOT) || + (type == P_PLASMA_RATE) || (type == P_SUPER))) + { + return; + } + // If the player has a charge cannon or a laser cannon, don't give them // rockets. Causes problems otherwise :) if (type == P_ROCKET)