Ignore:
Timestamp:
Feb 2, 2011, 9:45:57 PM (11 years ago)
Author:
sam
Message:

Fix an off-by-one error in animation frame computations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/monsterz/piece.cpp

    r316 r337  
    340340    case PieceData::POP:
    341341    {
    342         int off = 4 - (data->timer * 5 / DELAY_POP);
     342        int off = 4 - (int)(data->timer * 5 / DELAY_POP);
    343343        if (off < 0) off = 0;
    344344        if (off > 4) off = 4;
Note: See TracChangeset for help on using the changeset viewer.