Made the ammo cheat work on the laser and charge cannon.
The laser never overheats with infinite ammo, and the charge cannon fires at full blast immediately.
This commit is contained in:
parent
8698125f5f
commit
1c42d07906
10
src/game.cpp
10
src/game.cpp
|
@ -1110,7 +1110,10 @@ static void game_doPlayer()
|
|||
if (player.ammo[1] < 100)
|
||||
{
|
||||
ship_fireBullet(&player, 1);
|
||||
player.ammo[1] += 2;
|
||||
|
||||
if (!engine.cheatAmmo)
|
||||
player.ammo[1] += 2;
|
||||
|
||||
if (player.ammo[1] >= 100)
|
||||
{
|
||||
player.ammo[1] = 200;
|
||||
|
@ -1128,6 +1131,11 @@ static void game_doPlayer()
|
|||
{
|
||||
if (!player_chargerFired)
|
||||
{
|
||||
// With ammo cheat, cause the charge cannon to
|
||||
// fire at full blast immediately.
|
||||
if (engine.cheatAmmo)
|
||||
player.ammo[1] = 200;
|
||||
|
||||
if (currentGame.difficulty == DIFFICULTY_ORIGINAL)
|
||||
{
|
||||
LIMIT_ADD(player.ammo[1], 1, 0, 200);
|
||||
|
|
Loading…
Reference in New Issue