Skip to content

Commit

Permalink
Merge pull request #184 from asdawej/dev
Browse files Browse the repository at this point in the history
fix: 🐛 fix wrong comment line
  • Loading branch information
asdawej authored Apr 6, 2024
2 parents 889e553 + 32684d7 commit 7e02a1c
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 7e02a1c

Please sign in to comment.