summaryrefslogtreecommitdiff
path: root/src/mapblockobject.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2010-12-26 13:51:56 +0200
committerPerttu Ahola <celeron55@gmail.com>2010-12-26 13:51:56 +0200
commitc32da52104cc6bbe8ed0bf1ba1a7874f015cb738 (patch)
tree844e08affaf47d1d03fb0f37eec006ae39b6e8c5 /src/mapblockobject.h
parent4ba5cd580d86710b54f4b523db4e8710fb56fdb6 (diff)
downloadminetest-c32da52104cc6bbe8ed0bf1ba1a7874f015cb738.tar.gz
minetest-c32da52104cc6bbe8ed0bf1ba1a7874f015cb738.tar.bz2
minetest-c32da52104cc6bbe8ed0bf1ba1a7874f015cb738.zip
working good
Diffstat (limited to 'src/mapblockobject.h')
-rw-r--r--src/mapblockobject.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mapblockobject.h b/src/mapblockobject.h
index 08f535514..aee41f3ba 100644
--- a/src/mapblockobject.h
+++ b/src/mapblockobject.h
@@ -630,8 +630,8 @@ public:
m_counter2 -= dtime;
if(m_counter2 < 0.0)
{
- m_counter2 += (float)(rand()%100)/100*3.0;
- m_yaw += ((float)(rand()%200)-100)/100*180;
+ m_counter2 += (float)(myrand()%100)/100*3.0;
+ m_yaw += ((float)(myrand()%200)-100)/100*180;
m_yaw = wrapDegrees(m_yaw);
}
}