mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-02-21 03:21:37 +00:00
- Always write 64b program pointer
This commit is contained in:
parent
7f7ed7e45f
commit
46157857b5
2 changed files with 0 additions and 9 deletions
|
@ -226,13 +226,8 @@ void rvDebuggerClient::HandleBreak ( idBitMsg* msg )
|
|||
msg->ReadString ( filename, MAX_PATH );
|
||||
mBreakFilename = filename;
|
||||
|
||||
#if D3_SIZEOFPTR == 4 // 32 bit
|
||||
int ptr32b = msg->ReadInt();
|
||||
mBreakProgram = (idProgram*)ptr32b;
|
||||
#else
|
||||
int64_t ptr64b = msg->ReadInt64();
|
||||
mBreakProgram = (idProgram*)ptr64b;
|
||||
#endif
|
||||
|
||||
// Clear the variables
|
||||
mVariables.Clear ( );
|
||||
|
|
|
@ -612,11 +612,7 @@ void rvDebuggerServer::Break ( idInterpreter* interpreter, idProgram* program, i
|
|||
msg.WriteInt ( linenumber );
|
||||
msg.WriteString ( fileStr.c_str() );
|
||||
|
||||
#if D3_SIZEOFPTR == 4 // 32 bit
|
||||
msg.WriteInt( (int)mBreakProgram );
|
||||
#else
|
||||
msg.WriteInt64( (int64_t)mBreakProgram );
|
||||
#endif
|
||||
|
||||
SendPacket ( msg.GetData(), msg.GetSize() );
|
||||
|
||||
|
|
Loading…
Reference in a new issue