]> git.localhorst.tv Git - l2e.git/blobdiff - src/math/Fixed.h
minor performance improvements
[l2e.git] / src / math / Fixed.h
index 7fe099cee57ea789f0cc631f9397c89da6165e94..7a5e13d5fa9f2f1f6c891c0dfc2fb9467de50dff 100644 (file)
@@ -51,7 +51,7 @@ public:
 public:
        int Int() const { return IntPart() * Sigma(); }
        int Sigma() const {
-               if (IntPart() == 0 && FracPart() == 0) {
+               if (RawInt() == 0) {
                        return 0;
                } else if (SignPart() == 0) {
                        return 1;