Revert
This commit is contained in:
@@ -255,9 +255,14 @@ uint64_t DiceCalc(int64_t bet,int64_t odds,int64_t minbet,int64_t maxbet,int64_t
|
|||||||
winnings = 0;
|
winnings = 0;
|
||||||
if ( odds > 1 )
|
if ( odds > 1 )
|
||||||
{
|
{
|
||||||
|
{ // old way
|
||||||
|
bettor = (bettor / arith_uint256(odds));
|
||||||
|
if ( bettor >= house )
|
||||||
|
winnings = bet * (odds+1);
|
||||||
|
return(winnings);
|
||||||
|
}
|
||||||
if ( odds > 9999 ) // shouldnt happen
|
if ( odds > 9999 ) // shouldnt happen
|
||||||
return(0);
|
return(0);
|
||||||
//bettor = (bettor / arith_uint256(odds));
|
|
||||||
endiancpy(buf,(uint8_t *)&house,32);
|
endiancpy(buf,(uint8_t *)&house,32);
|
||||||
endiancpy(&buf[32],(uint8_t *)&bettor,32);
|
endiancpy(&buf[32],(uint8_t *)&bettor,32);
|
||||||
vcalc_sha256(0,(uint8_t *)&_hash,buf,64);
|
vcalc_sha256(0,(uint8_t *)&_hash,buf,64);
|
||||||
|
|||||||
Reference in New Issue
Block a user