mirror of
https://github.com/ApfelTeeSaft/PlanetFleet.git
synced 2026-08-26 19:33:38 +00:00
removing projectiles if they go out of map bounds
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#include "cruiseMissile.h"
|
||||
#include "iceSheet.h"
|
||||
#include "shell.h"
|
||||
#include "torpedo.h"
|
||||
#include "depthCharge.h"
|
||||
#include "defConfigs.h"
|
||||
|
||||
@@ -77,6 +78,8 @@ namespace battleship{
|
||||
return new CruiseMissile(unit, id, targetPos, pos, rot);
|
||||
case ProjectileClass::MISSILE:
|
||||
return new Missile(unit, id, targetPos, pos, rot);
|
||||
case ProjectileClass::TORPEDO:
|
||||
return new Torpedo(unit, id, pos, rot);
|
||||
case ProjectileClass::DEPTH_CHARGE:
|
||||
return new DepthCharge(unit, id, pos, rot);
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user