Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 11997


Ignore:
Timestamp:
May 24, 2018, 3:56:47 PM (6 years ago)
Author:
andera
Message:
 
File:
1 edited

Legend:

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

    r11989 r11997  
    193193        if (this->bTimeIsUp_)
    194194        {
    195             message = multi_cast<std::string>(s) + "." + multi_cast<std::string>(ms) + " seconds !!\n"
    196                         + "You loose!";
     195            message =  "TIME IS UP! YOU LOOSE!";
    197196        }
    198197       else if(this->bLost){
    199             message = multi_cast<std::string>(s)+"You could not reach the last checkpoint before your opponents. YOU LOOSE!";
     198            message = "YOU LOOSE!";
    200199
    201200       }       
     
    224223        int ms = this->clock_.getMilliseconds() % 1000;
    225224
    226        if(checkpoint->getCheckpointIndex()==18){
    227              const std::string& message = player->getName() + "reached the last checkpoint after "
    228                 + multi_cast<std::string>(s) + "." + multi_cast<std::string>(ms) + " seconds and WON THE GAME.";
    229 
    230         }
     225
    231226        std::string message(player->getName() + " reached the checkpoint " + multi_cast<std::string>(checkpoint->getCheckpointIndex() + 1)
    232227        + " after " + multi_cast<std::string>(s) + "." + multi_cast<std::string>(ms) + " seconds.");
     
    249244        ChatManager::message(message);
    250245       
     246
     247
     248        for (Engine* engine : ObjectList<Engine>())
     249            engine->setActive(true);
     250
    251251        std::string message2("Press W for forward acceleration, press W+space for boost!");
    252252        this->getGametypeInfo()->sendAnnounceMessage(message2);
    253253        ChatManager::message(message2);
    254 
    255         for (Engine* engine : ObjectList<Engine>())
    256             engine->setActive(true);
    257254    }
    258255
Note: See TracChangeset for help on using the changeset viewer.