1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Make some non-const static variables const or constexpr

This commit is contained in:
Ivan Savenko
2024-02-12 13:22:54 +02:00
parent 6db405167d
commit 6e399eb21a
15 changed files with 20 additions and 22 deletions

View File

@@ -76,7 +76,7 @@ void CPuzzleWindow::showAll(Canvas & to)
void CPuzzleWindow::show(Canvas & to)
{
static int animSpeed = 2;
constexpr int animSpeed = 2;
if(currentAlpha < animSpeed)
{