diff options
author | B. Watson <yalhcru@gmail.com> | 2016-01-18 00:46:33 -0500 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2016-01-18 00:46:33 -0500 |
commit | 807708211e2206d3b21c9c6353203ee40bdfe30b (patch) | |
tree | d1127405831e44923943043d5bdf0b9e40eb3cde /bigfloat.h | |
parent | e033d3cecc1707419525382f4635fcbc54df1e39 (diff) | |
download | taipan-807708211e2206d3b21c9c6353203ee40bdfe30b.tar.gz |
fix "65534 ships attacking", stop assuming a bignum can handle a fraction
Diffstat (limited to 'bigfloat.h')
-rw-r--r-- | bigfloat.h | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -9,11 +9,8 @@ /* zero */ #define BIG_0 { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } -/* TODO: calculate bank interest differently: this bignum - implementation is floating point, but I might swap it out - for an int-based one! */ -/* 1.005 (bank interest) */ -#define BIG_1_005 { 0x40, 0x01, 0x00, 0x50, 0x00, 0x00 } +/* bank interest rate is 0.5%, or .005, or 1/200 */ +#define BIG_200 { 0x41, 0x02, 0x00, 0x00, 0x00, 0x00 } /* bignum 100, used for score calculations in final_stats() */ #define BIG_100 { 0x41, 0x01, 0x00, 0x00, 0x00, 0x00 } |