diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2017-10-17 23:13:04 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2017-10-17 23:13:04 +0200 |
commit | 7d43c4e7ad6b83a23516b26b4aebf74f398c251b (patch) | |
tree | a6bd3b9f8e52c33615291ec4dc19f5ee9c9bb789 /src/game.cpp | |
parent | f66cf28c8b4d80122896c87dba8af74ea1872eba (diff) |
Fix a bug in entity linking.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp index 2af7736..59b8ad9 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -56,7 +56,7 @@ void state_t::tick(void) } if (human.stalin < -4.0f) - human.stalin = 2.0f; + human.stalin = (float)rand() / RAND_MAX * 3.0f; } } |