I segfault, I don't know why, it doesn't even matter how hard you try
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user