Minor corrections as we find them.
This commit is contained in:
parent
62f5fe938e
commit
2b36a0cc9e
@ -2,7 +2,7 @@
|
||||
#include "olcPixelGameEngine.h"
|
||||
#include "MemoryType.h"
|
||||
|
||||
class Unit;
|
||||
struct Unit;
|
||||
|
||||
class CollectionPoint{
|
||||
public:
|
||||
|
@ -201,7 +201,7 @@ void VirusAttack::LoadLevel(LevelName level){
|
||||
for(auto&u:selectedLevel.unitPlacement){
|
||||
#define TranslateUnit(type) \
|
||||
case UnitType::type:{ \
|
||||
units.push_back(std::make_unique<type>(this,u.pos,IMAGES,u.friendly)); \
|
||||
units.push_back(std::make_shared<type>(this,u.pos,IMAGES,u.friendly)); \
|
||||
}break;
|
||||
|
||||
switch(u.type){
|
||||
@ -223,7 +223,7 @@ void VirusAttack::LoadLevel(LevelName level){
|
||||
}
|
||||
}
|
||||
for(auto&cp:selectedLevel.cpPlacement){
|
||||
collectionPoints.push_back(std::make_unique<CollectionPoint>(this,cp.pos,cp.rot,*IMAGES[MEMORY_COLLECTION_POINT],cp.type));
|
||||
collectionPoints.push_back(std::make_shared<CollectionPoint>(this,cp.pos,cp.rot,*IMAGES[MEMORY_COLLECTION_POINT],cp.type));
|
||||
}
|
||||
|
||||
randomBackgroundOffset={util::random(128),util::random(128)};
|
||||
|
Loading…
x
Reference in New Issue
Block a user