diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2015-09-16 11:33:02 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2015-09-16 11:33:02 -0400 |
commit | d7efa99f03f9d0eb5d84ed42249f227f13471079 (patch) | |
tree | 1385c96106d7fbb64a6081529255bcc1d2d48664 /src/entities.cpp | |
parent | ba4b5bd76ae9b1fa3e3c862d8672e35b02e1664c (diff) |
shitty bug fixes
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 b418534..896e02d 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--; |