* (bug #3729) server dependencies on client.h (Ben Millwood)
* (bug #3731) BUILD_MISSIONPACK flag in Makefile (Gabriel Schnoering <gabriel.schnoering@gmail.com>) * (bug #3756) Q3VM crashes on unaligned block copy with SIGBUS (Patrick Baggett <baggett.patrick@figglesoftware.com>) and... * (bug #3755) IOQuake3 shouldn't use GCC-specific __FUNCTION__
This commit is contained in:
parent
acbf982689
commit
b555d68b3f
13 changed files with 36 additions and 32 deletions
|
@ -489,16 +489,10 @@ nextInstruction2:
|
|||
count = ((srci + count) & dataMask) - srci;
|
||||
count = ((desti + count) & dataMask) - desti;
|
||||
|
||||
src = (int *)&image[ r0&dataMask ];
|
||||
dest = (int *)&image[ r1&dataMask ];
|
||||
if ( ( (intptr_t)src | (intptr_t)dest | count ) & 3 ) {
|
||||
// happens in westernq3
|
||||
Com_Printf( S_COLOR_YELLOW "Warning: OP_BLOCK_COPY not dword aligned\n");
|
||||
}
|
||||
count >>= 2;
|
||||
for ( i = count-1 ; i>= 0 ; i-- ) {
|
||||
dest[i] = src[i];
|
||||
}
|
||||
src = (int *)&image[ srci ];
|
||||
dest = (int *)&image[ desti ];
|
||||
|
||||
memcpy(dest, src, count);
|
||||
programCounter += 4;
|
||||
opStack -= 2;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue