diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2015-12-03 20:06:19 -0500 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2015-12-03 20:06:19 -0500 |
commit | 897802f67d502c070eac0c14b43113d521a711ef (patch) | |
tree | ae3314c8c98bbd66277205a5a6415cf8d333f4a4 /src/entities.cpp | |
parent | dcd2d1e9ed9df2b67a48acc442c9e816b677b208 (diff) |
fixed sounds
Diffstat (limited to 'src/entities.cpp')
-rw-r--r-- | src/entities.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/entities.cpp b/src/entities.cpp index a2bff3c..729bcdd 100644 --- a/src/entities.cpp +++ b/src/entities.cpp @@ -376,14 +376,14 @@ unsigned int Structures::spawn(_TYPE t, float x, float y){ unsigned int tempN = (getRand() % 5 + 2); - while(--tempN){ + for(unsigned int i = 0;i < tempN;i++){ /* * This is where the entities actually spawn. A new entity is created * with type NPC. */ - currentWorld->addNPC(loc.x + (tempN - 5),100); + currentWorld->addNPC(loc.x + i * HLINE ,100); } |