From 30448cd5c2f26a87f0ca6811e7c6298a15dc4893 Mon Sep 17 00:00:00 2001 From: ponchio Date: Thu, 1 Jul 2004 21:36:30 +0000 Subject: [PATCH] Various debug --- apps/nexus/vert_remap.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/apps/nexus/vert_remap.cpp b/apps/nexus/vert_remap.cpp index 0cc89113..bf72bfd8 100644 --- a/apps/nexus/vert_remap.cpp +++ b/apps/nexus/vert_remap.cpp @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.1 2004/06/24 14:32:45 ponchio +Moved from wrap/nexus + Revision 1.1 2004/06/24 14:18:58 ponchio Created @@ -37,8 +40,8 @@ using namespace std; using namespace nxs; bool VertRemap::Create(const std::string &file) { - if(all.Create(file)) return false; - if(!borders.Create(file)) return false; + if(!all.Create(file + ".vrm")) return false; + if(!borders.Create(file + ".vrb")) return false; return true; } @@ -67,10 +70,11 @@ unsigned int VertRemap::Count(unsigned int key) { } void VertRemap::Insert(unsigned int key, unsigned int value) { - if(all[key] == 0xffffffff) + if(all[key] == 0xffffffff) { all[key] = value; - else + } else if(all[key] != value) { borders.Insert(key, value); + } } unsigned int VertRemap::GetValue(unsigned int key) { //return first value