diff options
author | Torbjörn Andersson | 2010-07-14 17:02:14 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2010-07-14 17:02:14 +0000 |
commit | f98fa72ef38ed2fd0239d59bda07acdb33b831c8 (patch) | |
tree | e0486d4da30f88fce7f4604079959ac22f4a4e09 /engines/drascula | |
parent | b91ef128975c6f253bed6c7720f4ead9e1ab0dc6 (diff) | |
download | scummvm-rg350-f98fa72ef38ed2fd0239d59bda07acdb33b831c8.tar.gz scummvm-rg350-f98fa72ef38ed2fd0239d59bda07acdb33b831c8.tar.bz2 scummvm-rg350-f98fa72ef38ed2fd0239d59bda07acdb33b831c8.zip |
Changed abs() to ABS() in a few places.
svn-id: r50890
Diffstat (limited to 'engines/drascula')
-rw-r--r-- | engines/drascula/actors.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/drascula/actors.cpp b/engines/drascula/actors.cpp index 33cb7fd478..8523b5b158 100644 --- a/engines/drascula/actors.cpp +++ b/engines/drascula/actors.cpp @@ -312,9 +312,9 @@ void DrasculaEngine::quadrant_2() { float distanceX, distanceY; if (currentChapter == 2) - distanceX = abs(curX + curWidth - roomX); + distanceX = ABS(curX + curWidth - roomX); else - distanceX = abs(curX + curWidth / 2 - roomX); + distanceX = ABS(curX + curWidth / 2 - roomX); distanceY = (curY + curHeight) - roomY; @@ -354,9 +354,9 @@ void DrasculaEngine::quadrant_4() { float distanceX, distanceY; if (currentChapter == 2) - distanceX = abs(curX + curWidth - roomX); + distanceX = ABS(curX + curWidth - roomX); else - distanceX = abs(curX + curWidth / 2 - roomX); + distanceX = ABS(curX + curWidth / 2 - roomX); distanceY = roomY - (curY + curHeight); |