mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[7609] Trailing whitespace cleaning
Here we are again! "git diff --check" !! Signed-off-by: freghar <compmancz@gmail.com>
This commit is contained in:
parent
99fe98169a
commit
0fc68c5e1e
11 changed files with 16 additions and 16 deletions
|
|
@ -1185,17 +1185,17 @@ void AchievementMgr::SetCriteriaProgress(AchievementCriteriaEntry const* entry,
|
|||
{
|
||||
case PROGRESS_SET:
|
||||
newValue = changeValue;
|
||||
break;
|
||||
break;
|
||||
case PROGRESS_ACCUMULATE:
|
||||
{
|
||||
// avoid overflow
|
||||
uint32 max_value = std::numeric_limits<uint32>::max();
|
||||
newValue = max_value - progress->counter > changeValue ? progress->counter + changeValue : max_value;
|
||||
break;
|
||||
break;
|
||||
}
|
||||
case PROGRESS_HIGHEST:
|
||||
newValue = progress->counter < changeValue ? changeValue : progress->counter;
|
||||
break;
|
||||
break;
|
||||
}
|
||||
|
||||
// not update (not mark as changed) if counter will have same value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue