mirror of
https://github.com/edubart/otclient.git
synced 2025-12-14 20:59:47 +01:00
Many enhancements in client API
* Fix issues in item use * Stack animated texts values * Add utility functions for changing creature color and jumping * Add some new extended functionality * Improve map shader API
This commit is contained in:
@@ -57,4 +57,9 @@ float random_range(float min, float max)
|
||||
return min + (max - min)*dis(gen);
|
||||
}
|
||||
|
||||
double round(double r)
|
||||
{
|
||||
return (r > 0.0) ? floor(r + 0.5) : ceil(r - 0.5);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -43,6 +43,8 @@ uint32_t adler32(const uint8_t *buffer, size_t size);
|
||||
long random_range(long min, long max);
|
||||
float random_range(float min, float max);
|
||||
|
||||
double round(double r);
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user