Skip to content

Instantly share code, notes, and snippets.

@LordNed
Created March 21, 2015 23:14
Show Gist options
  • Save LordNed/363d23d0a4e3bcf63571 to your computer and use it in GitHub Desktop.
Save LordNed/363d23d0a4e3bcf63571 to your computer and use it in GitHub Desktop.
public void AddMinutes(int numMinutes)
{
m_currentMinutes += numMinutes;
if(m_currentMinutes >= 60)
{
m_currentMinutes -= 60;
m_currentHours++;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment