From f7e418d6384236c66ecb88190f815e0380d71382 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Mon, 23 May 2005 00:39:55 +0000 Subject: Add heverison check, as requested by cyx. svn-id: r18223 --- scumm/script_v90he.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scumm/script_v90he.cpp b/scumm/script_v90he.cpp index 70c358b8bb..ff975309bf 100644 --- a/scumm/script_v90he.cpp +++ b/scumm/script_v90he.cpp @@ -1859,7 +1859,11 @@ void ScummEngine_v90he::o90_getPolygonOverlap() { if (dist >= 2) { dist = (int)sqrt((double)(dist + 1)); } - push((dist <= args1[2]) ? 1 : 0); + if (_heversion >= 98) { + push((dist <= args1[2]) ? 1 : 0); + } else { + push((dist > args1[2]) ? 1 : 0); + } } break; case 3: -- cgit v1.2.3