hedgewars/uWorld.pas
changeset 2999 30c4d62cd0c3
parent 2971 c65929077646
child 3025 01682ec58eb0
--- a/hedgewars/uWorld.pas	Mon Mar 15 02:23:40 2010 +0000
+++ b/hedgewars/uWorld.pas	Mon Mar 15 11:53:32 2010 +0000
@@ -279,7 +279,7 @@
     FreeWeaponTooltip;
 
 if (WeaponTooltipTex <> nil) and (AMxShift = 0) then
-    ShowWeaponTooltip(x - WeaponTooltipTex^.w - 3, y);
+    ShowWeaponTooltip(x - WeaponTooltipTex^.w - 3, min(y, cScreenHeight - WeaponTooltipTex^.h - 40));
 
 bSelected:= false;
 if AMxShift = 0 then DrawSprite(sprArrow, CursorPoint.X, cScreenHeight - CursorPoint.Y, (RealTicks shr 6) mod 8)