mirror of
				https://github.com/DarkflameUniverse/DarkflameServer.git
				synced 2025-11-04 06:32:00 +00:00 
			
		
		
		
	Update SGCannon.cpp
This commit is contained in:
		@@ -271,11 +271,9 @@ void SGCannon::DoSpawnTimerFunc(Entity* self, const std::string& name) {
 | 
				
			|||||||
			new LDFData<std::u16string>(u"groupID", u"SGEnemy"),
 | 
								new LDFData<std::u16string>(u"groupID", u"SGEnemy"),
 | 
				
			||||||
			new LDFData<uint32_t>(u"wave", self->GetVar<uint32_t>(ThisWaveVariable)),
 | 
								new LDFData<uint32_t>(u"wave", self->GetVar<uint32_t>(ThisWaveVariable)),
 | 
				
			||||||
		};
 | 
							};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		auto* enemy = Game::entityManager->CreateEntity(info, nullptr, self);
 | 
							auto* enemy = Game::entityManager->CreateEntity(info, nullptr, self);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (info.lot == 2565) {
 | 
					 | 
				
			||||||
			LOG("id is %llu", enemy->GetObjectID());
 | 
					 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
		auto* movementAI = enemy->AddComponent<MovementAIComponent>(MovementAIInfo{});
 | 
							auto* movementAI = enemy->AddComponent<MovementAIComponent>(MovementAIInfo{});
 | 
				
			||||||
		auto* simplePhysicsComponent = enemy->GetComponent<SimplePhysicsComponent>();
 | 
							auto* simplePhysicsComponent = enemy->GetComponent<SimplePhysicsComponent>();
 | 
				
			||||||
		if (simplePhysicsComponent) {
 | 
							if (simplePhysicsComponent) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user