summaryrefslogtreecommitdiff
path: root/src/environment.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-01-02 21:06:38 +0200
committerPerttu Ahola <celeron55@gmail.com>2012-01-02 21:06:38 +0200
commit6286c555d4bd4597e19c8b05d44f0ef364ceffb0 (patch)
treeee11969199d4176ade20d1d7f5581e2eb8668bb1 /src/environment.h
parent46302813186253a993b9f901fa5f3097961d3229 (diff)
downloadminetest-6286c555d4bd4597e19c8b05d44f0ef364ceffb0.tar.gz
minetest-6286c555d4bd4597e19c8b05d44f0ef364ceffb0.tar.bz2
minetest-6286c555d4bd4597e19c8b05d44f0ef364ceffb0.zip
Initialize ABM timer to random value to spread processing
Diffstat (limited to 'src/environment.h')
-rw-r--r--src/environment.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/environment.h b/src/environment.h
index f8df77f79..beb49885c 100644
--- a/src/environment.h
+++ b/src/environment.h
@@ -129,10 +129,7 @@ struct ABMWithState
ActiveBlockModifier *abm;
float timer;
- ABMWithState(ActiveBlockModifier *abm_):
- abm(abm_),
- timer(0)
- {}
+ ABMWithState(ActiveBlockModifier *abm_);
};
/*