aboutsummaryrefslogtreecommitdiff
path: root/bc_funcs
diff options
context:
space:
mode:
authorMango0x45 <thomasvoss@live.com>2021-01-03 16:10:18 +0000
committerMango0x45 <thomasvoss@live.com>2021-01-03 16:10:18 +0000
commit6bc48cc78c6451b82de359ba2a5f209748d1159b (patch)
tree27a07755f67c92906571285263e05b8c515e3dad /bc_funcs
parent6beda6463cd341bbeb776f1d15aa5616d5e112e1 (diff)
downloadsteve-bot-6bc48cc78c6451b82de359ba2a5f209748d1159b.tar
steve-bot-6bc48cc78c6451b82de359ba2a5f209748d1159b.tar.gz
steve-bot-6bc48cc78c6451b82de359ba2a5f209748d1159b.tar.bz2
steve-bot-6bc48cc78c6451b82de359ba2a5f209748d1159b.tar.lz
steve-bot-6bc48cc78c6451b82de359ba2a5f209748d1159b.tar.xz
steve-bot-6bc48cc78c6451b82de359ba2a5f209748d1159b.tar.zst
steve-bot-6bc48cc78c6451b82de359ba2a5f209748d1159b.zip
Fix function
Diffstat (limited to 'bc_funcs')
-rw-r--r--bc_funcs/misc.bc8
1 files changed, 5 insertions, 3 deletions
diff --git a/bc_funcs/misc.bc b/bc_funcs/misc.bc
index be838bb..7c0a9db 100644
--- a/bc_funcs/misc.bc
+++ b/bc_funcs/misc.bc
@@ -1,7 +1,9 @@
-define findseed() {
+define void findseed() {
auto x, i
for (i = 0; i < 12; i++)
- x += (rand() % 10 < 1)
+ if (rand() % 10 < 1)
+ x++
+
print "Your seed is a ", x, " eye"
-} \ No newline at end of file
+}