I segfault, I don't know why, it doesn't even matter how hard you try

This commit is contained in:
2026-04-16 23:08:01 +01:00
parent 49dd53f8e4
commit a1c0b5e97f
6 changed files with 21 additions and 10 deletions

View File

@@ -13,9 +13,13 @@ class Airfield : public WorldObject
private:
vec2 _position;
int _ttl;
int _next_spawn;
public:
Airfield(vec2 position, int ttl) : _position(position), _ttl(ttl) {}
Airfield(vec2 position, int ttl) : _position(position), _ttl(ttl)
{
_next_spawn = 30;
}
void tick(float timestep, World *world) override;
void draw(Renderer *rend) override;