From fc9f171a7728f16ce9417f0649fc774df7f057f2 Mon Sep 17 00:00:00 2001 From: Tazpn <tazpn@users.sourceforge.net> Date: Fri, 1 Jun 2007 13:34:45 +0000 Subject: [PATCH] Fixes for x64 compile. --- NifProps/NifProps.cpp | 10 +++++----- NifProps/bhkRigidBodyInterface.cpp | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/NifProps/NifProps.cpp b/NifProps/NifProps.cpp index 583db25..10a0168 100755 --- a/NifProps/NifProps.cpp +++ b/NifProps/NifProps.cpp @@ -27,8 +27,8 @@ public: void selectionChanged(); - BOOL dlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); - BOOL dlgAnimProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); + INT_PTR dlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); + INT_PTR dlgAnimProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); private: @@ -74,12 +74,12 @@ ClassDesc2* GetNifPropsDesc() { return &NifPropsDesc; } -static BOOL CALLBACK NifPropsDlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) +static INT_PTR CALLBACK NifPropsDlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) { return plugin.dlgProc(hWnd, msg, wParam, lParam); } -static BOOL CALLBACK NifAnimPropsDlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) +static INT_PTR CALLBACK NifAnimPropsDlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) { return plugin.dlgAnimProc(hWnd, msg, wParam, lParam); } @@ -303,7 +303,7 @@ void NifProps::Destroy(HWND hWnd) } -BOOL NifProps::dlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) +INT_PTR NifProps::dlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) { Vector3 center; diff --git a/NifProps/bhkRigidBodyInterface.cpp b/NifProps/bhkRigidBodyInterface.cpp index 8fce37c..bd298ec 100644 --- a/NifProps/bhkRigidBodyInterface.cpp +++ b/NifProps/bhkRigidBodyInterface.cpp @@ -550,7 +550,7 @@ void bhkRigidBodyIfcHelper::SetQualityType(int value, TimeValue time) } int bhkRigidBodyIfcHelper::GetQualityType(TimeValue time, Interval& valid) const { - float value = NP_DEFAULT_HVK_QUALITY_TYPE; + int value = NP_DEFAULT_HVK_QUALITY_TYPE; rbpblock->GetValue(PB_RB_QUALITY_TYPE,time,value,valid); return value; } -- GitLab