From ac66ce3b3c08d6820fc872e5570d0c32320e3e60 Mon Sep 17 00:00:00 2001 From: Saveliy Skresanov Date: Sun, 7 Jul 2013 11:52:08 +0700 Subject: [PATCH] Fix the bug where stickmen were shooting LIGH only in one direction. --- src/simulation/elements/STKM.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/simulation/elements/STKM.cpp b/src/simulation/elements/STKM.cpp index 39b389aa0..d576637a5 100644 --- a/src/simulation/elements/STKM.cpp +++ b/src/simulation/elements/STKM.cpp @@ -457,7 +457,7 @@ int Element_STKM::run_stickman(playerst* playerp, UPDATE_FUNC_ARGS) { angle = atan2(gvx, gvy)*180.0f/M_PI; else angle = rand()%360; - if (((int)playerp->comm)&0x01) + if (((int)playerp->pcomm)&0x01) angle += 180; if (angle>360) angle-=360;