Why not just changing in your original Code:
 while (vec_dist (player.x, my.x) > 50)

with Code:
 while (vec_dist (player.x, my.x) > 50 || current_ammoreserve >= 180)

??

Last edited by elsewood; 09/15/07 14:29.

A bus station is where the bus stops. A train station is where the train stops.
On my desk I have a workstation...