Skip to content

Commit

Permalink
Fixed /fpslimit not working if frame limiter is on
Browse files Browse the repository at this point in the history
  • Loading branch information
Whitetiger committed Apr 13, 2014
1 parent c82fc62 commit 5ad7c26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crashes/crashes/quickload.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ bool quickLoadPatches( )

if(*(int*)(dwSAMPBase + 0x2AE035) == 3000) { // 0.3z R1
dwConnectDelay = dwSAMPBase + 0x2AE035;
dwFPSSleep = dwSAMPBase + 0x65ABE;
dwFPSSleep = dwSAMPBase + 0x653E2;
} else if(*(int*)(dwSAMPBase + 0x244A7E) == 3000) { // 0.3x-R2-pre-release 2
dwConnectDelay = dwSAMPBase + 0x244A7E;
} else if(*(int*)(dwSAMPBase + 0x295074) == 3000) { // 0.3x-R2-pre-release 1
Expand All @@ -59,7 +59,7 @@ bool quickLoadPatches( )
if ( dwFPSSleep != NULL ) {
// Disable the 100FPS Lock
VirtualProtect((LPVOID)dwFPSSleep, 4, PAGE_EXECUTE_READWRITE, &oldProt);
MemPutFast < BYTE > (dwFPSSleep, 0xEB);
memcpy((void*)dwFPSSleep, "\x90\x90\x90\x90\x90\x90\x90", 7);
}


Expand Down

0 comments on commit 5ad7c26

Please sign in to comment.