summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRedix <redix@hotmail.de>2017-10-20 01:43:40 +0200
committerRedix <redix@hotmail.de>2017-10-20 01:43:40 +0200
commit87d675fdbd7fcbf4260afc4a6361324958b0c832 (patch)
tree77bc2353c6e5d345b9b9af5fe21a661cdf3a6504
parentbe6874bc8a445676743ae64544537842b3df542c (diff)
Fix warnings0.6.4-cp-r4
-rw-r--r--src/game/client/components/ghost.cpp1
-rw-r--r--src/game/client/components/ghost.h2
-rw-r--r--src/game/client/components/race_demo.cpp2
3 files changed, 2 insertions, 3 deletions
diff --git a/src/game/client/components/ghost.cpp b/src/game/client/components/ghost.cpp
index 2ceb57e89..993c8e048 100644
--- a/src/game/client/components/ghost.cpp
+++ b/src/game/client/components/ghost.cpp
@@ -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)
{
diff --git a/src/game/client/components/ghost.h b/src/game/client/components/ghost.h
index dcc246d22..07be81547 100644
--- a/src/game/client/components/ghost.h
+++ b/src/game/client/components/ghost.h
@@ -55,7 +55,7 @@ private:
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()
{
diff --git a/src/game/client/components/race_demo.cpp b/src/game/client/components/race_demo.cpp
index 73f446040..c621a4b03 100644
--- a/src/game/client/components/race_demo.cpp
+++ b/src/game/client/components/race_demo.cpp
@@ -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;