aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision
diff options
context:
space:
mode:
authorrichiesams2013-08-30 17:10:06 -0500
committerWillem Jan Palenstijn2013-09-24 13:59:39 +0200
commit3c3a6bd93542ad82bd7972050db141628b413b30 (patch)
tree069a84f171a93f36ffcfa8d172e6ac54d0ab80bf /engines/zvision
parentdfe143137aa89909c9bf0fd24a359be8af9c2834 (diff)
downloadscummvm-rg350-3c3a6bd93542ad82bd7972050db141628b413b30.tar.gz
scummvm-rg350-3c3a6bd93542ad82bd7972050db141628b413b30.tar.bz2
scummvm-rg350-3c3a6bd93542ad82bd7972050db141628b413b30.zip
ZVISION: Fix typo in point range clipping
Diffstat (limited to 'engines/zvision')
-rw-r--r--engines/zvision/render_table.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/zvision/render_table.cpp b/engines/zvision/render_table.cpp
index a4dfe67c53..0a83d5e4ae 100644
--- a/engines/zvision/render_table.cpp
+++ b/engines/zvision/render_table.cpp
@@ -62,7 +62,7 @@ void RenderTable::setRenderState(RenderState newState) {
const Common::Point RenderTable::convertWarpedCoordToFlatCoord(const Common::Point &point) {
// If we're outside the range of the RenderTable, no warping is happening. Return the maximum image coords
- if (point.x >= (int16)_numColumns || point.y >= (int16)_numRows || point.x < 0 || point.y , 0) {
+ if (point.x >= (int16)_numColumns || point.y >= (int16)_numRows || point.x < 0 || point.y < 0) {
int16 x = CLIP<int16>(point.x, 0, (int16)_numColumns);
int16 y = CLIP<int16>(point.y, 0, (int16)_numRows);
return Common::Point(x, y);