diff options
Diffstat (limited to 'src/entities.cpp')
-rw-r--r-- | src/entities.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/entities.cpp b/src/entities.cpp index ee909d8..7275af1 100644 --- a/src/entities.cpp +++ b/src/entities.cpp @@ -17,10 +17,11 @@ void Entity::draw(void){ } void Entity::wander(int timeRun, vec2 *v){ + static int hey; if(ticksToUse == 0){ ticksToUse = timeRun; v->x = .00010; - int hey = (grand() % 3 - 1); + hey = (grand() % 3 - 1); v->x *= hey; } ticksToUse--; |