mirror of
https://github.com/theoleuthardt/DinoGame.git
synced 2026-06-13 01:17:56 +00:00
fix: use <algorithm> for building on linux
This commit is contained in:
parent
ce05257cc1
commit
2c6b08bc44
1 changed files with 4 additions and 1 deletions
|
|
@ -1,5 +1,8 @@
|
|||
#include "Game.hpp"
|
||||
#include "raylib.h"
|
||||
#include <algorithm>
|
||||
|
||||
using namespace std;
|
||||
|
||||
Game::Game() {
|
||||
SetConfigFlags(FLAG_VSYNC_HINT);
|
||||
|
|
@ -46,7 +49,7 @@ void Game::Update() {
|
|||
cactus.Update();
|
||||
}
|
||||
|
||||
cacti.erase(std::remove_if(cacti.begin(), cacti.end(),
|
||||
cacti.erase(remove_if(cacti.begin(), cacti.end(),
|
||||
[](Cactus &c) { return c.IsOffScreen(); }),
|
||||
cacti.end());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue