From 8f2878604865dfb4c7bd87f57d2122758d9d60b8 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 26 Oct 2019 14:58:35 -0400 Subject: [PATCH] CModel: Implement CModelFlags' operator!= in terms of operator== Same behavior, less code. --- Runtime/Graphics/CModel.hpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Runtime/Graphics/CModel.hpp b/Runtime/Graphics/CModel.hpp index d569820ea..482af7430 100644 --- a/Runtime/Graphics/CModel.hpp +++ b/Runtime/Graphics/CModel.hpp @@ -58,10 +58,7 @@ struct CModelFlags { x4_color == other.x4_color; } - bool operator!=(const CModelFlags& other) const { - return x0_blendMode != other.x0_blendMode || x1_matSetIdx != other.x1_matSetIdx || x2_flags != other.x2_flags || - x4_color != other.x4_color; - } + bool operator!=(const CModelFlags& other) const { return !operator==(other); } }; /* urde addition: doesn't require hacky stashing of