From 228accc1587b5a7e515781e29df0457e6a805640 Mon Sep 17 00:00:00 2001 From: kakukri Date: Sun, 1 Apr 2012 19:05:48 +0000 Subject: [PATCH] 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 --- src/modules/userinterface/legacymenu/legacymenu.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/modules/userinterface/legacymenu/legacymenu.cpp b/src/modules/userinterface/legacymenu/legacymenu.cpp index c36f2294d..42cab1472 100644 --- a/src/modules/userinterface/legacymenu/legacymenu.cpp +++ b/src/modules/userinterface/legacymenu/legacymenu.cpp @@ -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)