From 5cb31f6d5b667a551092b699de6f4786e0bb5b6d Mon Sep 17 00:00:00 2001 From: George Marques Date: Sun, 19 Jun 2016 12:36:50 -0300 Subject: Replace 'or'/'and' keywords Some compilers do not like this. --- scene/animation/animation_player.cpp | 2 +- scene/resources/animation.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'scene') diff --git a/scene/animation/animation_player.cpp b/scene/animation/animation_player.cpp index 0ff6931dcd..dd4fa992ac 100644 --- a/scene/animation/animation_player.cpp +++ b/scene/animation/animation_player.cpp @@ -572,7 +572,7 @@ void AnimationPlayer::_animation_process_data(PlaybackData &cd,float p_delta,flo } else { - if (next_pos<0 or next_pos>len) { + if (next_pos<0 || next_pos>len) { if (!backwards) next_pos=0; else if (backwards) diff --git a/scene/resources/animation.cpp b/scene/resources/animation.cpp index b6fc3eb419..8f61c7b957 100644 --- a/scene/resources/animation.cpp +++ b/scene/resources/animation.cpp @@ -1235,7 +1235,7 @@ T Animation::_interpolate( const Vector< TKey >& p_keys, float p_time, Inter float c=0; // prepare for all cases of interpolation - if (loop and loop_interpolation) { + if (loop && loop_interpolation) { // loop if (idx>=0) { -- cgit v1.2.3