From 5f5d19cac46cd0fd48951aabaaee0b0c7c6c2b68 Mon Sep 17 00:00:00 2001 From: prefect Date: Thu, 3 Nov 2005 22:21:44 +0000 Subject: [PATCH] Compile fixes and cleanup This was SVN commit r3088. --- source/renderer/HWLightingModelRenderer.cpp | 2 -- source/tools/atlas/GameInterface/MessagesSetup.h | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/source/renderer/HWLightingModelRenderer.cpp b/source/renderer/HWLightingModelRenderer.cpp index d7199943b0..5373efcbc9 100644 --- a/source/renderer/HWLightingModelRenderer.cpp +++ b/source/renderer/HWLightingModelRenderer.cpp @@ -195,8 +195,6 @@ void HWLightingModelRenderer::UpdateModelData(CModel* model, void* data, u32 upd if (updateflags & RENDERDATA_UPDATE_VERTICES) { CModelDefPtr mdef = model->GetModelDef(); - size_t numVertices = mdef->GetNumVertices(); - UNUSED2(numVertices); // build vertices VertexArrayIterator Position = hwlmodel->m_Position.GetIterator(); diff --git a/source/tools/atlas/GameInterface/MessagesSetup.h b/source/tools/atlas/GameInterface/MessagesSetup.h index 90765d77b8..f765419835 100644 --- a/source/tools/atlas/GameInterface/MessagesSetup.h +++ b/source/tools/atlas/GameInterface/MessagesSetup.h @@ -56,7 +56,7 @@ struct IMessage #define MESSAGESTRUCT(t) \ struct m##t : public IMessage { \ const char* GetName() const { return #t; } \ - Type GetType() const { return Type::Message; } \ + Type GetType() const { return IMessage::Message; } \ private: \ const m##t& operator=(const m##t&); \ public: @@ -80,7 +80,7 @@ MESSAGESTRUCT(MergeCommand) }; struct QueryMessage : public IMessage { - Type GetType() const { return Type::Query; } + Type GetType() const { return IMessage::Query; } void Post(); // defined in ScenarioEditor.cpp void* m_Semaphore; // for use by MessagePasser implementations (yay encapsulation)