Game Development Community

[BUG T3D1.1B1] endGame calls startGame - typo? - RESOLVED

by Guy Allard · in Torque 3D Professional · 04/29/2010 (3:15 am) · 2 replies

GameDM.cs
function DeathMatchGame::endGame calls Parent::startGame instead of Parent::endGame
It then proceeds to unneccessarily [sp?] inform the clients that the game has ended, which would have happened anyway if it had called Parent::endGame
function DeathMatchGame::endGame(%game)
{
   //echo (%game @"c4 -> "@ %game.class @" -> DeathMatchGame::endGame");

   parent::startGame(%game);
   // Inform the client the game is over
   for (%clientIndex = 0; %clientIndex < ClientGroup.getCount(); %clientIndex++)
   {
      %cl = ClientGroup.getObject(%clientIndex);
      commandToClient(%cl, 'GameEnd');
   }
}

probably just a typo...

#1
08/22/2010 (5:04 am)
Logged as TQA-905 for QA to verify
#2
09/06/2010 (9:20 pm)
This was fixed in 1.1 Beta 2.