Ignore:
Timestamp:
Feb 4, 2011, 12:42:16 AM (10 years ago)
Author:
sam
Message:

Display spawn counts in Fusion mode, and generate random pieces accordingly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/monsterz/thumbs.cpp

    r345 r348  
    9595void Thumbs::AddCount(int id, int count)
    9696{
    97     if (id >= 0 && id < data->npieces)
    98         data->count[id] += count;
     97    if (id > 0 && id <= data->npieces)
     98        data->count[id - 1] += count;
     99}
     100
     101int Thumbs::GetCount(int id)
     102{
     103    if (id > 0 && id <= data->npieces)
     104        return data->count[id - 1];
     105    else
     106        return 0;
    99107}
    100108
Note: See TracChangeset for help on using the changeset viewer.