Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
axblk committed Oct 19, 2017
1 parent be6874b commit 87d675f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/game/client/components/ghost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,6 @@ void CGhost::OnRender()
if(pGhost->Empty())
continue;

bool End = false;
int GhostTick = pGhost->m_StartTick + PlaybackTick;
while(pGhost->m_PlaybackPos >= 0 && pGhost->m_Path.Get(pGhost->m_PlaybackPos)->m_Tick < GhostTick)
{
Expand Down
2 changes: 1 addition & 1 deletion src/game/client/components/ghost.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class CGhost : public CComponent

CGhostItem() { Reset(); }

void AutoMirror(int Team) { m_Mirror = Team != TEAM_SPECTATORS && m_Team == Team ^ 1; }
void AutoMirror(int Team) { m_Mirror = Team != TEAM_SPECTATORS && m_Team == (Team ^ 1); }
bool Empty() const { return m_Path.Size() == 0; }
void Reset()
{
Expand Down
2 changes: 1 addition & 1 deletion src/game/client/components/race_demo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ bool CRaceDemo::CheckDemo(int Time) const
Storage()->ListDirectory(IStorage::TYPE_SAVE, ms_pRaceDemoDir, RaceDemolistFetchCallback, &Param);

// loop through demo files
for(unsigned i = 0; i < lDemos.size(); i++)
for(int i = 0; i < lDemos.size(); i++)
{
if(Time >= lDemos[i].m_Time) // found a better demo
return false;
Expand Down

0 comments on commit 87d675f

Please sign in to comment.