adamleesaintfrancis / spacewar

Automatically exported from code.google.com/p/spacewar
0 stars 0 forks source link

shieldDelay =0; missing from Ship.reset() #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. die while shields are on

What is the expected output? What do you see instead?
energy drains while the ship is off screen, ship doesn't start with full
health.

What version of the product are you using? On what operating system?
latest

Please provide any additional information below.

 in ship.java, add shieldDelay = 0; just like fire and mine
@Override

    public void reset() {

        super.reset();

        findNewPosition();

        energy = MAX_ENERGY;

        flag = null;

        activeCommand = ShipCommand.DoNothing;

        fireDelay = 0;

        mineDelay = 0;
    shieldDelay = 0;

    }
Also, please cc: jfager on any new issues that are opened!  Thank you!

Original issue reported on code.google.com by lokim...@gmail.com on 28 Mar 2008 at 9:33

GoogleCodeExporter commented 9 years ago
good catch, thanks

Original comment by jfa...@gmail.com on 1 Apr 2008 at 2:43