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/mash.cpp

    r863 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
     
    7878}
    7979
    80 void Mash::TickGame(float deltams)
     80void Mash::TickGame(float seconds)
    8181{
    82     Entity::TickGame(deltams);
     82    Entity::TickGame(seconds);
    8383
    8484    switch (data->state)
     
    106106    }
    107107    case MashData::DUH:
    108         if ((data->timer -= deltams) < 0.0f)
     108        if ((data->timer -= seconds) < 0.0f)
    109109        {
    110110            Sampler::PlaySample(data->pop);
     
    143143}
    144144
    145 void Mash::TickDraw(float deltams)
     145void Mash::TickDraw(float seconds)
    146146{
    147     Entity::TickDraw(deltams);
     147    Entity::TickDraw(seconds);
    148148}
    149149
Note: See TracChangeset for help on using the changeset viewer.