From a462d4a81e1fb5f31d390a635e7e9fd56f7116db Mon Sep 17 00:00:00 2001 From: hiker Date: Mon, 7 Mar 2016 09:12:21 +1100 Subject: [PATCH] Fixed compiler warnings. --- src/replay/replay_play.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/replay/replay_play.cpp b/src/replay/replay_play.cpp index b33ae3366..467481700 100644 --- a/src/replay/replay_play.cpp +++ b/src/replay/replay_play.cpp @@ -120,7 +120,7 @@ void ReplayPlay::loadAllReplayFile() fclose(fd); continue; } - rd.m_reverse = (bool)reverse; + rd.m_reverse = reverse!=0; fgets(s, 1023, fd); if (sscanf(s, "difficulty: %u", &rd.m_difficulty) != 1) @@ -247,9 +247,9 @@ void ReplayPlay::readKartData(FILE *fd, char *next_line) pi.m_suspension_length[1] = w2; pi.m_suspension_length[2] = w3; pi.m_suspension_length[3] = w4; - kre.m_on_nitro = (bool)nitro; - kre.m_on_zipper = (bool)zipper; - kre.m_jumping = (bool)jumping; + kre.m_on_nitro = nitro!=0; + kre.m_on_zipper = zipper!=0; + kre.m_jumping = jumping!=0; m_ghost_karts[kart_num].addReplayEvent(time, btTransform(q, xyz), pi, kre); }