$OpenBSD: patch-snowball_cc,v 1.2 2007/10/27 15:24:30 kili Exp $ --- snowball.cc.orig Thu Jul 19 16:26:35 2007 +++ snowball.cc Sat Oct 13 22:00:52 2007 @@ -24,10 +24,10 @@ static int an; static long subKind; static long ve; -static long time; +static long my_time; void snb_init(void) { - time = -1; + my_time = -1; } /* move the snowball and check if it hits something */ @@ -40,19 +40,19 @@ void snb_movesnowball(void) { int nr; - if (time < 0) return; + if (my_time < 0) return; - if (time == 12) { - time = -1; + if (my_time == 12) { + my_time = -1; return; } - time++; + my_time++; an = (an + subKind * 2) & 0x7f; - ve += schusshoch[time - 1]; + ve += schusshoch[my_time - 1]; if (!lev_testfigure(an, ve, -1, 0, 2, 2, 5)) { - time = -1; + my_time = -1; return; } @@ -63,11 +63,11 @@ void snb_movesnowball(void) { else { ttsounds::instance()->startsound(SND_HIT); pts_add(rob_gothit(nr)); - time = -1; + my_time = -1; } } -bool snb_exists(void) { return time != -1; } +bool snb_exists(void) { return my_time != -1; } void snb_start(int verticalpos, int anglepos, bool look_left) { @@ -80,7 +80,7 @@ void snb_start(int verticalpos, int anglepos, bool loo subKind = 1; } an &= 0x7f; - time = 0; + my_time = 0; } int snb_verticalpos(void) { return ve; }