Skip to content

Commit

Permalink
Misc bug fixes
Browse files Browse the repository at this point in the history
Tick value is fixed, research project page has the correct title, and
fast oob now locks ship designs if they are placed into TGs.
  • Loading branch information
NathanH- committed Dec 10, 2013
1 parent e4785e5 commit 6c5641b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions Pulsar4X/Pulsar4X.UI/Handlers/FastOOB.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ private void AddButton_Click(object sender, EventArgs e)

for(int loop = 0; loop < Number; loop++)
{
if (m_oCurrnetShipClass.IsLocked == false)
m_oCurrnetShipClass.IsLocked = true;

m_oCurrnetTaskGroup.AddShip(m_oCurrnetShipClass, GameState.Instance.YearTickValue);
m_oCurrnetFaction.ShipBPTotal = m_oCurrnetFaction.ShipBPTotal - m_oCurrnetShipClass.BuildPointCost;

Expand Down
4 changes: 2 additions & 2 deletions Pulsar4X/Pulsar4X.UI/Handlers/SystemMap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -233,14 +233,14 @@ private void AdvanceTime(int TickValue)


int Seconds = GameState.Instance.GameDateTime.Second + (GameState.Instance.GameDateTime.Minute * 60) + (GameState.Instance.GameDateTime.Hour * 3600) +
(GameState.Instance.GameDateTime.DayOfYear * 86400);
(GameState.Instance.GameDateTime.DayOfYear * 86400) - 86400;

GameState.Instance.YearTickValue = Seconds;

/// <summary>
/// Put the date time somewhere.
/// </summary>
m_oControlsPanel.TabText = "SystemMap.cs Kludge(241): " + GameState.Instance.GameDateTime.ToString() + " " + Seconds.ToString();
m_oControlsPanel.TabText = "SystemMap.cs Kludge(243): " + GameState.Instance.GameDateTime.ToString() + " " + Seconds.ToString();

m_oCurrentSceen.Refresh();
}
Expand Down
2 changes: 1 addition & 1 deletion Pulsar4X/Pulsar4X.UI/Panels/Component_Design.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Pulsar4X/Pulsar4X.UI/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ static void Main()
oNewFaction2.TaskGroups[0].Ships[1].Name = "Backup Battleship";

oNewFaction.GiveAllTechs();
//oNewFaction2.GiveAllTechs();
oNewFaction2.GiveAllTechs();

/// <summary>
/// End Alpha.
Expand Down

0 comments on commit 6c5641b

Please sign in to comment.