Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 18, 2009, 6:00:13 PM (15 years ago)
Author:
Aurelian
Message:

Respawning changed, not possible anymore, not completely working. Movable Entity is now able to cause damage.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gametypes/src/orxonox/objects/gametypes/Asteroids.cc

    r2978 r2986  
    4444        RegisterObject(Asteroids);
    4545        this->firstCheckpointReached_ = false;
     46        this->firstTimeSpawned_ = false;
    4647    }
    4748
     
    5960            this->end();
    6061        }
    61        
    6262    }
    6363
     64    void Asteroids::spawnPlayer(PlayerInfo* player)
     65    {
     66        if (this->timerIsActive_ && this->firstTimeSpawned_)
     67        {
     68            this->end();
     69            return;
     70        }
     71
     72        this->firstTimeSpawned_ = true;
     73        Gametype::spawnPlayer(player);
     74    }
    6475
    6576    void Asteroids::start()
Note: See TracChangeset for help on using the changeset viewer.