Changeset 17 for trunk


Ignore:
Timestamp:
Dec 18, 2005, 5:06:17 PM (14 years ago)
Author:
jtv
Message:

Fixed assertion failure on m_patches_to_go >= 0 when continuing after death

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gamelogic.cxx

    r12 r17  
    3535int rand_coord(int top)
    3636{
    37   // TODO: Actually randomize
     37  // TODO: There's probably some better random function out there
    3838  return rand() % top;
    3939}
     
    419419    {
    420420      reveal_patch(row,col);
     421      if (!p.mined()) --m_patches_to_go;
    421422      throw Boom(pos, m_moves, p.mined());
    422423    }
     
    424425    worklist.insert(pos);
    425426    propagate(worklist, changes);
    426     // TODO: FIXME: This can actually fail, apparently, in loaded games
    427427    assert(m_patches_to_go >= 0);
    428428  }
Note: See TracChangeset for help on using the changeset viewer.