Skip to content

Commit

Permalink
Let's never speak of this again
Browse files Browse the repository at this point in the history
  • Loading branch information
SupSuper committed Aug 20, 2015
1 parent 0d077fd commit 8d0363b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Savegame/Base.cpp
Expand Up @@ -623,9 +623,9 @@ double Base::getUsedStores()
*/
bool Base::storesOverfull(double offset)
{
double capacity = getAvailableStores();
double used = getUsedStores();
return used + offset > capacity;
int capacity = getAvailableStores() * 100;
double used = (getUsedStores() + offset) * 100;
return (int)used > capacity;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/fmath.h
Expand Up @@ -24,7 +24,7 @@

template <class _Tx>
inline bool AreSame(const _Tx& l, const _Tx& r) {
return std::fabs(l-r) <= std::numeric_limits<_Tx>::epsilon();
return std::fabs(l-r) <= std::numeric_limits<_Tx>::epsilon();
}

template <class _Tx>
Expand Down

0 comments on commit 8d0363b

Please sign in to comment.