From fb59b3495608afcdbc99249d91f5cf4ff0669051 Mon Sep 17 00:00:00 2001 From: Magnus Date: Tue, 24 Nov 2009 14:26:18 +0000 Subject: [PATCH] git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3477 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- quakec/fallout2/csqc/invent.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quakec/fallout2/csqc/invent.qc b/quakec/fallout2/csqc/invent.qc index 5ebfd2f0a..21931713e 100644 --- a/quakec/fallout2/csqc/invent.qc +++ b/quakec/fallout2/csqc/invent.qc @@ -1229,7 +1229,7 @@ float(float eventtype, float param1, float param2) CSQC_InputEvent = { if (showcontextmenu && show_inventory) { - op = ceil((mousepos_y - contextpos_y)/(8*(scrwidth/640))); + op = floor((mousepos_y - contextpos_y)/(8*(scrwidth/640))); if (op == 0) localcmd(strcat("cmd invuse ", ftos(slotnum), "\n"));