瀏覽代碼

*** empty log message ***

David Rose 25 年之前
父節點
當前提交
cec48f1ffd
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      panda/src/egg/eggMaterial.cxx

+ 2 - 2
panda/src/egg/eggMaterial.cxx

@@ -180,10 +180,10 @@ sorts_less_than(const EggMaterial &other, int eq) const {
       return get_spec().compare_to(other.get_spec()) < 0;
     }
     if (has_shininess() && get_shininess() != other.get_shininess()) {
-      return get_shininess() < other.get_shininess() ? -1 : 1;
+      return get_shininess() < other.get_shininess();
     }
     if (has_local() && get_local() != other.get_local()) {
-      return get_local() - other.get_local();
+      return get_local() < other.get_local();
     }
   }