From 8426007577d80415adcdc0877cb6d82fd0ec6cdd Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 6 Feb 2019 22:41:45 +0100 Subject: [PATCH] fixed incorrect mouse interpretation in models --- hypgraph.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hypgraph.cpp b/hypgraph.cpp index e3be8a30..921fd6d1 100644 --- a/hypgraph.cpp +++ b/hypgraph.cpp @@ -237,6 +237,8 @@ void applymodel(hyperpoint H, hyperpoint& ret) { using namespace hyperpoint_vec; + hyperpoint H_orig = H; + switch(pmodel) { case mdUnchanged: ret = H / current_display->radius; @@ -596,7 +598,7 @@ void applymodel(hyperpoint H, hyperpoint& ret) { case mdGUARD: break; } - ghcheck(ret,H); + ghcheck(ret,H_orig); } // game-related graphics