Fix the bug where stickmen were shooting LIGH only in one direction.

This commit is contained in:
Saveliy Skresanov 2013-07-07 11:52:08 +07:00
parent 74b8b2c85b
commit ac66ce3b3c

View File

@ -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;