mirror of
https://github.com/glest/glest-source.git
synced 2025-08-13 20:03:58 +02:00
bugfixes for attack boost did not properly rollback boost value sometimes for multiplier style boosts
This commit is contained in:
@@ -239,6 +239,13 @@ int round(float f);
|
||||
//misc
|
||||
bool checkVersionComptability(string clientVersionString, string serverVersionString);
|
||||
|
||||
template<typename T>
|
||||
void enforceMinimumValue(T minValue, T &value) {
|
||||
if(value < minValue) {
|
||||
value = minValue;
|
||||
}
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
void deleteValues(T beginIt, T endIt){
|
||||
for(T it= beginIt; it!=endIt; ++it){
|
||||
|
Reference in New Issue
Block a user