commit 71ea5b7f
Made the update a lot more frequent. At very high speed the old setting could get choppy.
Changed files
| M | .gitignore before |
| M | source/code/BlockGame.cpp before |
diff --git a/.gitignore b/.gitignore
index 66cd4c9..6256595 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,6 +10,7 @@ nbproject
-.travis.yml
-.gitignore
!.editorconfig
+!.dockerignore
*.patch
Game/blockattack*
cmake_install.cmake
diff --git a/source/code/BlockGame.cpp b/source/code/BlockGame.cpp
index 6479159..b8e10be 100644
--- a/source/code/BlockGame.cpp
+++ b/source/code/BlockGame.cpp
@@ -1820,14 +1820,14 @@ bool BlockGame::IsNearDeath() const {
}
void BlockGame::UpdateInternal(unsigned int newtick) {
- while (newtick >= ticks+50) {
- ticks+=50;
+ while (newtick >= ticks+10) {
+ ticks+=10;
Update();
}
}
void BlockGame::DoAction (const BlockGameAction& action) {
- if (action.action == BlockGameAction::Action::UPDATE && action.tick < ticks+50) {
+ if (action.action == BlockGameAction::Action::UPDATE && action.tick < ticks+10) {
return; //Ignore if this is an update and not high enough
}
if (action.action == BlockGameAction::Action::UPDATE && replayInfo.actions.size() > 0 && replayInfo.actions.back().action == action.action) {