Ignore:
Timestamp:
Feb 7, 2011, 3:23:40 AM (10 years ago)
Author:
sam
Message:

Make the Board class more generic by allowing non-48x48 tiles.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/monsterz/mash.cpp

    r314 r384  
    8686        for (int n = 0; n < data->npieces && allready; n++)
    8787        {
    88             int2 dest = data->pieces[n]->GetCell() * 48;
    89             int2 cur = data->pieces[n]->GetPos();
    90 
    9188            /* If piece is still too high, don't start the animation */
    92             if (cur.y - dest.y > 2 || abs(cur.x - dest.x) > 2)
     89            int2 shift = data->pieces[n]->GetShift();
     90            if (shift.y > 2 || abs(shift.x) > 2)
    9391                allready = 0;
    9492        }
Note: See TracChangeset for help on using the changeset viewer.