Quote:
Originally Posted by kstmr
what you said is what a wise person would do.
what you said is what most of those retarded player hate.
|
Otherwise, people can implement the Won System, since it adds a new currency of it.
@

1) Be sure to check the signness of the type and use it
Little example to make it cuter:
Code:
#ifdef ENABLE_GOLD_LIMIT_INCREASE
typedef long long GoldType;
typedef signed long long sGoldType;
typedef unsigned long long uGoldType;
#else
typedef int GoldType;
typedef signed int sGoldType;
typedef unsigned int uGoldType;
#endif
2) Doing as you did, you will get quite a lot of format warnings (and also errors) related to %d/%u -> %lld
Little example to make it cuter:
Code:
#ifdef ENABLE_GOLD_LIMIT_INCREASE
#define "%lld" GOLD_FORMAT
#define "%lld" SGOLD_FORMAT
#define "%llu" UGOLD_FORMAT
#else
#define "%d" GOLD_FORMAT
#define "%d" SGOLD_FORMAT
#define "%u" UGOLD_FORMAT
#endif
3) This if you want to use long long, and int, instead of int64_t/int32_t, and the relative PRId32/PRId64.
4) There's no need to change all the points to 64bit and create infinite bugs, when you can simply create a separate 64bit point handling just for the gold.