From 419d06f319c631c9c4860aababbfc49ee26aeefc Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Fri, 25 Sep 2015 16:15:35 -0400 Subject: updates ;) --- src/entities.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/entities.cpp') diff --git a/src/entities.cpp b/src/entities.cpp index 9c18313..5da39dd 100644 --- a/src/entities.cpp +++ b/src/entities.cpp @@ -64,7 +64,7 @@ Structures::Structures(){ speed = 0; } -void Structures::spawn(int t, float x, float y){ +unsigned int Structures::spawn(int t, float x, float y){ loc.x = x; loc.y = y; type = t; @@ -86,5 +86,6 @@ void Structures::spawn(int t, float x, float y){ entity[entity.size()]->type = 1; entity[entity.size()]->spawn(loc.x + (float)(i - 5) / 8,0); } + return entity.size(); } } -- cgit v1.2.3