Improved comments.

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@4644 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: e87578e5513f3337ca3369273332cfb26a942c13
Former-commit-id: 6c69b81f5f0b68437b08ab57dced3b87716c5fea
This commit is contained in:
kakukri 2012-04-01 19:05:48 +00:00
parent 1090aaee1f
commit 228accc158

View file

@ -248,11 +248,12 @@ bool LegacyMenu::onRaceEventStarting(bool careerNonHumanGroup)
void LegacyMenu::onRaceInitializing()
{
// Activate the loading screen only if not a practice or qualification session,
// or else if we are loading the 1st competitor of the race.
// Activate the loading screen at the start of sessions,
// that is at race session and timed practice or qualifying sessions,
// and for the first car in non-timed practice or qualifying sessions.
tRmInfo* pReInfo = _piRaceEngine->inData();
if ((pReInfo->s->_raceType == RM_TYPE_QUALIF || pReInfo->s->_raceType == RM_TYPE_PRACTICE)
&& pReInfo->s->_totTime < 0.0f) // <= What's this time test for ?
&& pReInfo->s->_totTime < 0.0f)
{
if ((int)GfParmGetNum(pReInfo->results, RE_SECT_CURRENT, RE_ATTR_CUR_DRIVER, 0, 1) == 1)
{
@ -299,6 +300,7 @@ void LegacyMenu::onRaceLoadingDrivers()
_hscrGame = ::RmResScreenInit();
// If neither a qualification, nor a practice, or else 1st driver,
// that is the non-first driver in a race session,
// activate race loading screen.
if (!(_piRaceEngine->inData()->s->_raceType == RM_TYPE_QUALIF
|| _piRaceEngine->inData()->s->_raceType == RM_TYPE_PRACTICE)