diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2015-09-25 16:15:35 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2015-09-25 16:15:35 -0400 |
commit | 419d06f319c631c9c4860aababbfc49ee26aeefc (patch) | |
tree | eb05ae42da01622bcd8e36ca4ef7aec197a0ef58 /src/entities.cpp | |
parent | 144d3d5f39cb2cc9088fade10c6aefb9f79c9665 (diff) |
updates ;)
Diffstat (limited to 'src/entities.cpp')
-rw-r--r-- | src/entities.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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(); } } |