Skip to content

Commit

Permalink
Default formation speed limiting to off (for now)
Browse files Browse the repository at this point in the history
It can still be toggled by players in all game modes, if desired
  • Loading branch information
past-due committed Jun 22, 2024
1 parent 8c036d5 commit d538076
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/move.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,15 @@
#define EXTRA_BITS 8
#define EXTRA_PRECISION (1 << EXTRA_BITS)

static std::vector<bool> playerFormationSpeedLimiting = std::vector<bool>(MAX_PLAYERS, true);
static std::vector<bool> playerFormationSpeedLimiting = std::vector<bool>(MAX_PLAYERS, false);

void moveInit()
{
// Initialize formation speed limiting to off for all players
playerFormationSpeedLimiting.resize(MAX_PLAYERS);
for (size_t i = 0; i < playerFormationSpeedLimiting.size(); ++i)
{
playerFormationSpeedLimiting[i] = true;
playerFormationSpeedLimiting[i] = false;
}
}

Expand Down

0 comments on commit d538076

Please sign in to comment.