diff options
author | Max Horn | 2004-02-01 21:10:26 +0000 |
---|---|---|
committer | Max Horn | 2004-02-01 21:10:26 +0000 |
commit | 25e2688b4d984421b9fb8a2bf97ef1b8c0d8a947 (patch) | |
tree | f45d26dc797696e040e3d7619e3c1181a8010152 | |
parent | 0176e4de25e7d1348f866408eeaadd9ccd714d0a (diff) | |
download | scummvm-rg350-25e2688b4d984421b9fb8a2bf97ef1b8c0d8a947.tar.gz scummvm-rg350-25e2688b4d984421b9fb8a2bf97ef1b8c0d8a947.tar.bz2 scummvm-rg350-25e2688b4d984421b9fb8a2bf97ef1b8c0d8a947.zip |
help poor VC7
svn-id: r12711
-rw-r--r-- | sword1/control.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sword1/control.cpp b/sword1/control.cpp index c7437100f9..9297435c19 100644 --- a/sword1/control.cpp +++ b/sword1/control.cpp @@ -478,7 +478,7 @@ void Control::handleVolumeClicks(void) { uint8 clickDest = 0; int16 mouseDiffX = _mouseX - (_volumeButtons[clickedId].x + 48); int16 mouseDiffY = _mouseY - (_volumeButtons[clickedId].y + 48); - int16 mouseOffs = (int16)sqrt(mouseDiffX * mouseDiffX + mouseDiffY * mouseDiffY); + int16 mouseOffs = (int16)sqrt((double)(mouseDiffX * mouseDiffX + mouseDiffY * mouseDiffY)); // check if the player really hit the button (but not the center). if ((mouseOffs <= 42) && (mouseOffs >= 8)) { if (mouseDiffX > 8) { // right part |