diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2008-02-22 01:39:13 +0000 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2008-02-22 01:39:13 +0000 |
commit | 8082fda92a86b34a37fe386266efbde5e30bca16 (patch) | |
tree | 85713a913062b8c851de806e2ad0fe26adaa7e03 /general/Frac.cpp | |
parent | 88b11f136c7a4b287ac44e3ec8e671cf17ab8319 (diff) | |
download | sigen-8082fda92a86b34a37fe386266efbde5e30bca16.tar.gz sigen-8082fda92a86b34a37fe386266efbde5e30bca16.tar.xz sigen-8082fda92a86b34a37fe386266efbde5e30bca16.zip |
[FIX] Frac now makes sure that the denominator is positive
[FIX] Sprite-containing classes less repetative with determining paths
[FIX] More include cleanup in pokemodr
[FIX] Precision of Frac decimal equivalents now use a define
[FIX] Species UI form is now more compact and complete
[ADD] SpeciesUI.{h, cpp} (again; wasn't actually included last time and got lost)
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@68 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'general/Frac.cpp')
-rw-r--r-- | general/Frac.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/general/Frac.cpp b/general/Frac.cpp index a47b005b..9cf47aca 100644 --- a/general/Frac.cpp +++ b/general/Frac.cpp @@ -24,7 +24,7 @@ void Frac::set(const int n, const int d) throw(Exception) { - if ((type == Improper) || ((n <= d) && (type == Proper)) || ((d < n) && (type == Over1))) + if (((type == Improper) || ((n <= d) && (type == Proper)) || ((d < n) && (type == Over1))) && (0 < d)) { num = n; denom = d; |