mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-28 18:29:49 +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;
|
||||
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