]> git.pond.sub.org Git - empserver/commit
Do not update player's bank balance when the change is zero
authorRon Koenderink <rkoenderink@yahoo.ca>
Sat, 13 Sep 2008 23:33:24 +0000 (17:33 -0600)
committerRon Koenderink <rkoenderink@yahoo.ca>
Sat, 13 Sep 2008 23:33:24 +0000 (17:33 -0600)
commit738fb28f73123bd99ab7c4b332b127d4de4fed41
treeea1a933e5859478362e67fdd2ba371f2af9ec77b
parent861a66625c605e9430f4e5fd8e3e7ff183014f37
Do not update player's bank balance when the change is zero

Hackish work around for a race condition in the nightly build's
regression tests: sometimes the update starts right after the
force command yields, sometimes a bit later.  If it is late, we
use one random number here, for the bye, and throwing off the
random sequence.
src/lib/player/player.c