Ignore:
Timestamp:
Mar 28, 2011, 1:31:29 AM (10 years ago)
Author:
sam
Message:

monsterz: perform move as soon as the grabbed piece is close to its
destination cell.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/monsterz/mash.cpp

    r735 r746  
    8888        for (int n = 0; n < data->npieces && allready; n++)
    8989        {
    90             /* If piece is still too high, don't start the animation */
     90            /* If piece is still too far, don't start the animation */
    9191            vec2i shift = data->pieces[n]->GetShift();
    92             if (shift.y > 2 || abs(shift.x) > 2)
     92            if (abs(shift.y) + abs(shift.x) > 0)
    9393                allready = 0;
    9494        }
Note: See TracChangeset for help on using the changeset viewer.