Ignore:
Timestamp:
Apr 29, 2012, 11:55:32 PM (9 years ago)
Author:
sam
Message:

core: tick methods now use seconds, like any sane system.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/monsterz/score.cpp

    r740 r1310  
    22// Monsterz
    33//
    4 // Copyright: (c) 2005-2011 Sam Hocevar <sam@hocevar.net>
     4// Copyright: (c) 2005-2012 Sam Hocevar <sam@hocevar.net>
    55//   This program is free software; you can redistribute it and/or
    66//   modify it under the terms of the Do What The Fuck You Want To
     
    5454}
    5555
    56 void Score::TickGame(float deltams)
     56void Score::TickGame(float seconds)
    5757{
    58     Text::TickGame(deltams);
     58    Text::TickGame(seconds);
    5959
    6060    if (data->display != data->score)
    6161    {
    62         data->countdown += deltams;
     62        data->countdown += seconds;
    6363
    64         if (data->countdown > 500.0f)
     64        if (data->countdown > 0.5f)
    6565        {
    6666            int diff = data->score - data->display;
     
    8585}
    8686
    87 void Score::TickDraw(float deltams)
     87void Score::TickDraw(float seconds)
    8888{
    89     Text::TickDraw(deltams);
     89    Text::TickDraw(seconds);
    9090}
    9191
Note: See TracChangeset for help on using the changeset viewer.