1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Fix for x64 build

The wparam and lparam are 64 bits. We ensure to use always 32 bits
values because the structure is serialized.
This commit is contained in:
Mathieu Schroeter 2017-01-23 23:58:08 +01:00
parent e197b01781
commit 284713ca7a
2 changed files with 6 additions and 6 deletions

View File

@ -4562,15 +4562,15 @@ void CEvent::DemoRecEvent(UINT message, WPARAM wParam, LPARAM lParam)
m_pDemoBuffer[m_demoIndex-1].time == m_demoTime &&
m_pDemoBuffer[m_demoIndex-1].message == message )
{
m_pDemoBuffer[m_demoIndex-1].wParam = wParam;
m_pDemoBuffer[m_demoIndex-1].lParam = lParam;
m_pDemoBuffer[m_demoIndex-1].wParam = static_cast<UINT> (wParam);
m_pDemoBuffer[m_demoIndex-1].lParam = static_cast<UINT> (lParam);
}
else
{
m_pDemoBuffer[m_demoIndex].time = m_demoTime;
m_pDemoBuffer[m_demoIndex].message = message;
m_pDemoBuffer[m_demoIndex].wParam = wParam;
m_pDemoBuffer[m_demoIndex].lParam = lParam;
m_pDemoBuffer[m_demoIndex].wParam = static_cast<UINT> (wParam);
m_pDemoBuffer[m_demoIndex].lParam = static_cast<UINT> (lParam);
m_demoIndex ++;
if ( m_demoIndex >= MAXDEMO )

View File

@ -40,8 +40,8 @@ typedef struct
{
int time;
UINT message;
WPARAM wParam;
LPARAM lParam;
UINT wParam; // WPARAM
UINT lParam; // LPARAM
}
DemoEvent;