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:
parent
e197b01781
commit
284713ca7a
@ -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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user