1) Fixed compilation problems with VS ('or' instead of || etc)
2) Added new files to VS project. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2290 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -1135,6 +1135,18 @@
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="modes"
|
||||
>
|
||||
<File
|
||||
RelativePath="..\..\modes\follow_the_leader.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\modes\standard_race.cpp"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Headerdateien"
|
||||
@@ -1705,6 +1717,18 @@
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="modes"
|
||||
>
|
||||
<File
|
||||
RelativePath="..\..\modes\follow_the_leader.hpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\modes\standard_race.hpp"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Ressourcendateien"
|
||||
|
||||
@@ -94,7 +94,7 @@ void Clock::setMode(const ClockType mode, const float initial_time)
|
||||
//-----------------------------------------------------------------------------
|
||||
void Clock::raceOver(const bool delay)
|
||||
{
|
||||
if(m_phase == DELAY_FINISH_PHASE or m_phase == FINISH_PHASE) return; // we already know
|
||||
if(m_phase == DELAY_FINISH_PHASE || m_phase == FINISH_PHASE) return; // we already know
|
||||
|
||||
if(delay)
|
||||
{
|
||||
|
||||
@@ -270,8 +270,8 @@ public:
|
||||
* The code that draws the timer should call this first to know
|
||||
* whether the game mode wants a timer drawn
|
||||
*/
|
||||
bool shouldDrawTimer() const { return ((m_clock.getPhase() == RACE_PHASE or
|
||||
m_clock.getPhase() == DELAY_FINISH_PHASE) and
|
||||
bool shouldDrawTimer() const { return ((m_clock.getPhase() == RACE_PHASE ||
|
||||
m_clock.getPhase() == DELAY_FINISH_PHASE) &&
|
||||
m_clock.getMode() != CLOCK_NONE); }
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user