Skip to content

Commit

Permalink
cast time penalty to float (#5424) (#5426)
Browse files Browse the repository at this point in the history
Co-authored-by: andrewcoh <54679309+andrewcoh@users.noreply.github.com>
  • Loading branch information
Chris Elion and andrewcoh committed Jun 8, 2021
1 parent b57b8fa commit c1b26d4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ public void GoalTouched(Team scoredTeam)
{
if (scoredTeam == Team.Blue)
{
m_BlueAgentGroup.AddGroupReward(1 - m_ResetTimer / MaxEnvironmentSteps);
m_BlueAgentGroup.AddGroupReward(1 - (float)m_ResetTimer / MaxEnvironmentSteps);
m_PurpleAgentGroup.AddGroupReward(-1);
}
else
{
m_PurpleAgentGroup.AddGroupReward(1 - m_ResetTimer / MaxEnvironmentSteps);
m_PurpleAgentGroup.AddGroupReward(1 - (float)m_ResetTimer / MaxEnvironmentSteps);
m_BlueAgentGroup.AddGroupReward(-1);
}
m_PurpleAgentGroup.EndGroupEpisode();
Expand Down

0 comments on commit c1b26d4

Please sign in to comment.