Skip to content

Commit

Permalink
fix: 🐛 fix wrong comment
Browse files Browse the repository at this point in the history
  • Loading branch information
asdawej committed Apr 6, 2024
1 parent 433e9cd commit 779cdd8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions logic/GameClass/GameObj/Team.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,14 @@ public Team(Home home)
ship.CanMove.SetROri(false);
ship.IsRemoved.SetROri(true);
});
/*
ShipPool.Initiate(ShipType.CivilShip, GameData.MaxCivilShipNum,
() => new(GameData.ShipRadius, ShipType.CivilShip, MoneyPool));
ShipPool.Initiate(ShipType.WarShip, GameData.MaxWarShipNum,
() => new(GameData.ShipRadius, ShipType.WarShip, MoneyPool));
ShipPool.Initiate(ShipType.FlagShip, GameData.MaxFlagShipNum,
() => new(GameData.ShipRadius, ShipType.FlagShip, MoneyPool));
*/
}
public void AddMoney(long add)
{
Expand Down
2 changes: 1 addition & 1 deletion logic/Gaming/Game.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public long AddPlayer(PlayerInitInfo playerInitInfo)
{
return GameObj.invalidID;
}
//teamList[(int)playerInitInfo.teamID].AddShip(newShip);
teamList[(int)playerInitInfo.teamID].ShipPool.Append(newShip);
return newShip.PlayerID;
}
else
Expand Down

0 comments on commit 779cdd8

Please sign in to comment.