diff options
author | Martin Fahy <martinfa@buffalo.edu> | 2015-05-14 05:05:44 +0200 |
---|---|---|
committer | Martin Fahy <martinfa@buffalo.edu> | 2015-05-14 05:05:44 +0200 |
commit | 8f0f421ae4affc20b5ee25979538d2ac240df213 (patch) | |
tree | d015899ae6f865429b8daef948f3194f00cb7de7 /src | |
parent | Merge pull request #2007 from mc-server/AllCommandsThroughHook (diff) | |
download | cuberite-8f0f421ae4affc20b5ee25979538d2ac240df213.tar cuberite-8f0f421ae4affc20b5ee25979538d2ac240df213.tar.gz cuberite-8f0f421ae4affc20b5ee25979538d2ac240df213.tar.bz2 cuberite-8f0f421ae4affc20b5ee25979538d2ac240df213.tar.lz cuberite-8f0f421ae4affc20b5ee25979538d2ac240df213.tar.xz cuberite-8f0f421ae4affc20b5ee25979538d2ac240df213.tar.zst cuberite-8f0f421ae4affc20b5ee25979538d2ac240df213.zip |
Diffstat (limited to '')
-rw-r--r-- | src/World.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/World.cpp b/src/World.cpp index 648c9cd19..c0a79b9d0 100644 --- a/src/World.cpp +++ b/src/World.cpp @@ -1019,7 +1019,7 @@ void cWorld::TickWeather(float a_Dt) // 0.5% chance per tick of thunderbolt if (m_TickRand.randInt() % 199 == 0) { - CastThunderbolt(0, 0, 0); // TODO: find random possitions near players to cast thunderbolts. + CastThunderbolt(0, 0, 0); // TODO: find random positions near players to cast thunderbolts. } } } @@ -1119,7 +1119,7 @@ void cWorld::TickScheduledTasks(void) auto WorldAge = m_WorldAge; // Move all the due tasks from m_ScheduledTasks into Tasks: - for (auto itr = m_ScheduledTasks.begin(); itr != m_ScheduledTasks.end();) // Cannot use range-basd for, we're modifying the container + for (auto itr = m_ScheduledTasks.begin(); itr != m_ScheduledTasks.end();) // Cannot use range-based for, we're modifying the container { if ((*itr)->m_TargetTick < std::chrono::duration_cast<cTickTimeLong>(WorldAge).count()) { |