* Decreases the remaining uses of a mapblock for this session. */
| 135 | * Decreases the remaining uses of a mapblock for this session. |
| 136 | */ |
| 137 | void MapBlock::markUsed() |
| 138 | { |
| 139 | if (_maxCount == -1) |
| 140 | { |
| 141 | return; |
| 142 | } |
| 143 | _timesUsed++; |
| 144 | if (_timesUsed >= _maxCount) |
| 145 | { |
| 146 | _timesUsed = _maxCount; |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | /** |
| 151 | * Resets the remaining uses of a mapblock for this session. |