diff options
author | Mattes D <github@xoft.cz> | 2015-05-14 13:41:22 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-05-14 13:41:22 +0200 |
commit | 80f2e1eb66a254fb41117219893f487aed60c483 (patch) | |
tree | e67d25d5ec24f7a706ecbb8ca5c00df73bc06809 /src/World.cpp | |
parent | Merge pull request #2006 from mc-server/ManualBindingsWorld (diff) | |
parent | Update World.cpp (diff) | |
download | cuberite-80f2e1eb66a254fb41117219893f487aed60c483.tar cuberite-80f2e1eb66a254fb41117219893f487aed60c483.tar.gz cuberite-80f2e1eb66a254fb41117219893f487aed60c483.tar.bz2 cuberite-80f2e1eb66a254fb41117219893f487aed60c483.tar.lz cuberite-80f2e1eb66a254fb41117219893f487aed60c483.tar.xz cuberite-80f2e1eb66a254fb41117219893f487aed60c483.tar.zst cuberite-80f2e1eb66a254fb41117219893f487aed60c483.zip |
Diffstat (limited to 'src/World.cpp')
-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()) { |