mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-29 19:00:33 +02:00
Fix the bug where stickmen were shooting LIGH only in one direction.
This commit is contained in:
@@ -457,7 +457,7 @@ int Element_STKM::run_stickman(playerst* playerp, UPDATE_FUNC_ARGS) {
|
|||||||
angle = atan2(gvx, gvy)*180.0f/M_PI;
|
angle = atan2(gvx, gvy)*180.0f/M_PI;
|
||||||
else
|
else
|
||||||
angle = rand()%360;
|
angle = rand()%360;
|
||||||
if (((int)playerp->comm)&0x01)
|
if (((int)playerp->pcomm)&0x01)
|
||||||
angle += 180;
|
angle += 180;
|
||||||
if (angle>360)
|
if (angle>360)
|
||||||
angle-=360;
|
angle-=360;
|
||||||
|
Reference in New Issue
Block a user