From 7e7ab3e70e1d29105308e9b8ec3e00bf54a08bd0 Mon Sep 17 00:00:00 2001 From: Daniel Gibson Date: Tue, 26 Apr 2016 17:54:57 +0200 Subject: [PATCH] remove FIXMEs in GameMP/Computer.cpp and replace the corresponding conditions with more readable (but equivalent) ones. --- Sources/GameMP/Computer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/GameMP/Computer.cpp b/Sources/GameMP/Computer.cpp index fa6cba2..60bf3cc 100644 --- a/Sources/GameMP/Computer.cpp +++ b/Sources/GameMP/Computer.cpp @@ -246,7 +246,7 @@ void LastUnreadMessage(void) // go to next/previous message void PrevMessage(void) { - if (_iActiveMessage < _acmMessages.Count()==0) { // FIXME: DG: what is this about? + if (_iActiveMessage >= _acmMessages.Count()) { return; } _iActiveMessage--; @@ -258,7 +258,7 @@ void PrevMessage(void) void NextMessage(void) { - if (_iActiveMessage < _acmMessages.Count()==0) { // FIXME: DG: what is this about? + if (_iActiveMessage >= _acmMessages.Count()) { return; } _iActiveMessage++; @@ -305,7 +305,7 @@ void MessageTextUp(INDEX ctLines) void MessageTextDn(INDEX ctLines) { // if no message do nothing - if (_iActiveMessage < _acmMessages.Count()==0) { // FIXME: DG: what is this about? + if (_iActiveMessage >= _acmMessages.Count()) { return; } // find text lines count