diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2009-02-09 04:27:12 -0500 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2009-02-09 04:27:12 -0500 |
| commit | 58352a39ff8474e36938d6f4ca0b4f3d5d9c5f33 (patch) | |
| tree | d4a250e0911ebb3f28e19818685ca26def369ecb /sigencore/Arena.cpp | |
| parent | 0d2d9dccdccfaa13b5977e8b8ab18445d157d2f6 (diff) | |
Fix use of Player API
Diffstat (limited to 'sigencore/Arena.cpp')
| -rw-r--r-- | sigencore/Arena.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sigencore/Arena.cpp b/sigencore/Arena.cpp index 4f72e96b..b0e5b060 100644 --- a/sigencore/Arena.cpp +++ b/sigencore/Arena.cpp @@ -300,10 +300,7 @@ void Sigencore::Arena::distributeWinnings() continue; Spoil spoil = m_spoils[player]; const int net = spoil.first - spoil.second; - if (net < 0) - player->takeMoney(-net); - else if (0 < net) - player->giveMoney(net); + player->giveMoney(net); } } |
