mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[9386] Store some config values in Rate emun.
This commit is contained in:
parent
6e5b74e0ca
commit
5368751c13
33 changed files with 163 additions and 164 deletions
|
|
@ -57,7 +57,7 @@
|
|||
#if COMPILER == COMPILER_MICROSOFT
|
||||
# pragma warning(disable:4996) // 'function': was declared deprecated
|
||||
#ifndef __SHOW_STUPID_WARNINGS__
|
||||
# pragma warning(disable:4244) // 'argument' : conversion from 'type1' to 'type2', possible loss of data
|
||||
//# pragma warning(disable:4244) // 'argument' : conversion from 'type1' to 'type2', possible loss of data
|
||||
# pragma warning(disable:4355) // 'this' : used in base member initializer list
|
||||
#endif // __SHOW_STUPID_WARNINGS__
|
||||
#endif // __GNUC__
|
||||
|
|
|
|||
|
|
@ -56,6 +56,11 @@ double rand_chance (void)
|
|||
return mtRand->randExc (100.0);
|
||||
}
|
||||
|
||||
float rand_chance_f(void)
|
||||
{
|
||||
return (float)mtRand->randExc (100.0);
|
||||
}
|
||||
|
||||
Tokens StrSplit(const std::string &src, const std::string &sep)
|
||||
{
|
||||
Tokens r;
|
||||
|
|
|
|||
|
|
@ -62,6 +62,8 @@ MANGOS_DLL_SPEC float rand_norm_f(void);
|
|||
* With an FPU, there is usually no difference in performance between float and double. */
|
||||
MANGOS_DLL_SPEC double rand_chance(void);
|
||||
|
||||
MANGOS_DLL_SPEC float rand_chance_f(void);
|
||||
|
||||
/* Return true if a random roll fits in the specified chance (range 0-100). */
|
||||
inline bool roll_chance_f(float chance)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "9385"
|
||||
#define REVISION_NR "9386"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue