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:
Eduardo Bart
2013-01-09 17:29:58 -02:00
parent aeb31f0669
commit cce2976156
38 changed files with 832 additions and 118 deletions

View File

@@ -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);
}
}

View File

@@ -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