Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9804


Ignore:
Timestamp:
Nov 21, 2013, 11:44:16 PM (10 years ago)
Author:
jo
Message:

Cleaning up the spacerace output.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/gametypes/SpaceRace.cc

    r9667 r9804  
    5555    void SpaceRace::end()
    5656    {
    57         this->Gametype::end();
    58 
    5957        this->clock_.capture();
    6058        int s = this->clock_.getSeconds();
     
    7270                        + "." + multi_cast<std::string>(ms) + " seconds.";
    7371        }
    74 
    75         this->getGametypeInfo()->sendAnnounceMessage(message);
    76         ChatManager::message(message);
     72        if (!this->hasEnded())
     73        {
     74            this->getGametypeInfo()->sendAnnounceMessage(message);
     75            ChatManager::message(message);
     76        }
     77        this->Gametype::end();
    7778    }
    7879
Note: See TracChangeset for help on using the changeset viewer.