Fix the bug where stickmen were shooting LIGH only in one direction.
This commit is contained in:
parent
74b8b2c85b
commit
ac66ce3b3c
@ -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;
|
||||
|
Reference in New Issue
Block a user