|
|
@ -885,7 +885,7 @@ void VirusAttack::CollisionChecking(std::shared_ptr<Unit>u,std::shared_ptr<Unit> |
|
|
|
u->SetPos({float(WORLD_SIZE.x*CONSTANT::TILE_SIZE.x),u->GetPos().y}); |
|
|
|
u->SetPos({float(WORLD_SIZE.x*CONSTANT::TILE_SIZE.x),u->GetPos().y}); |
|
|
|
} |
|
|
|
} |
|
|
|
if(u->GetPos().y<0){ |
|
|
|
if(u->GetPos().y<0){ |
|
|
|
u->SetPos({u->GetPos().y,0}); |
|
|
|
u->SetPos({u->GetPos().x,0}); |
|
|
|
} |
|
|
|
} |
|
|
|
if(u->GetPos().y>WORLD_SIZE.y*CONSTANT::TILE_SIZE.y){ |
|
|
|
if(u->GetPos().y>WORLD_SIZE.y*CONSTANT::TILE_SIZE.y){ |
|
|
|
u->SetPos({u->GetPos().x,float(WORLD_SIZE.y*CONSTANT::TILE_SIZE.y)}); |
|
|
|
u->SetPos({u->GetPos().x,float(WORLD_SIZE.y*CONSTANT::TILE_SIZE.y)}); |
|
|
|