mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-22 10:20:26 +01:00
Use PointerToID() for sound-event ID in CSoundObject::Play()/Stop()
so that code should be 64bit-clean now.
This commit is contained in:
parent
23b6374e9a
commit
b437abf10d
|
@ -60,7 +60,7 @@ public:
|
|||
TIME pe_tmTick;
|
||||
ULONG pe_ulEntityID;
|
||||
ULONG pe_ulTypeID;
|
||||
ULONG pe_ulEventID; // FIXME: make this void* or uintptr_t/size_t
|
||||
ULONG pe_ulEventID;
|
||||
|
||||
CPredictedEvent(void);
|
||||
void Clear(void) {};
|
||||
|
|
|
@ -213,8 +213,7 @@ void CSoundObject::Play(CSoundData *pCsdLink, SLONG slFlags)
|
|||
|
||||
//CPrintF("PLAY: '%s'", (const char*)pCsdLink->GetName().FileName());
|
||||
// get prediction tail
|
||||
STUBBED("64-bit issue");
|
||||
CSoundObject *psoTail = GetPredictionTail(EVENT_SOUNDPLAY, (ULONG)(size_t)pCsdLink);
|
||||
CSoundObject *psoTail = GetPredictionTail(EVENT_SOUNDPLAY, PointerToID(pCsdLink));
|
||||
// if the event is predicted
|
||||
if (psoTail==NULL) {
|
||||
// do nothing;
|
||||
|
@ -350,8 +349,7 @@ void CSoundObject::Stop(void)
|
|||
|
||||
CSoundObject *psoTail = this;
|
||||
// get prediction tail
|
||||
STUBBED("64-bit issue");
|
||||
psoTail = GetPredictionTail(EVENT_SOUNDSTOP, (ULONG)(size_t)so_pCsdLink);
|
||||
psoTail = GetPredictionTail(EVENT_SOUNDSTOP, PointerToID(so_pCsdLink));
|
||||
// if the event is predicted
|
||||
if (psoTail==NULL) {
|
||||
// do nothing;
|
||||
|
|
Loading…
Reference in New Issue
Block a user