Skip to content

Commit

Permalink
Fix for shadow mods not showing ped shadows
Browse files Browse the repository at this point in the history
  • Loading branch information
Whitetiger committed Jun 14, 2014
1 parent 0aa0838 commit da5f7e1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion LatestVersion.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.1 https://github.com/Whitetigerswt/gtasa_crashfix/releases/download/v2.1/crashes.asi
2.2 https://github.com/Whitetigerswt/gtasa_crashfix/releases/download/v2.2/crashes.asi
13 changes: 9 additions & 4 deletions crashes/crashes/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ static void WINAPI Load() {
MemSet ( (void*)0x6D29CB, 0x90, 5 );

// END 2

// Disable CTaskSimplePlayerOnFoot::PlayIdleAnimations (ret 4)
MemPut < BYTE > ( 0x6872C0, 0xC2 );
MemPut < BYTE > ( 0x6872C1, 0x04 );
Expand Down Expand Up @@ -345,9 +345,14 @@ static void WINAPI Load() {
MemPut < BYTE > ( 0x0449C50, 0xC3 );
MemPut < BYTE > ( 0x0449D10, 0xC3 );

MemPut < BYTE > ( 0x0706AB0, 0xC3 );
// Pass on loading priority to dependent models
MemPut < BYTE > ( 0x040892A, 0x53 );
MemPut < BYTE > ( 0x040892B, 0x90 );


if(GetModuleHandle("shadows.asi") == NULL)
MemPut < BYTE > ( 0x0706AB0, 0xC3 ); // HACK to prevent RealTimeShadowManager crash

// HACK to prevent RealTimeShadowManager crash
// 00542483 EB 0B JMP SHORT gta_sa_u.00542490
MemPut < BYTE > ( 0x542483, 0xEB );

Expand All @@ -361,7 +366,7 @@ static void WINAPI Load() {

// Fix vehicle back lights both using light state 3 (SA bug)
MemPut < BYTE > ( 0x6E1D4F, 2 );

// Disable setting players on fire when they're riding burning bmx's (see #4573)
MemPut < BYTE > ( 0x53A982, 0xEB );

Expand Down
2 changes: 1 addition & 1 deletion crashes/crashes/main.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#pragma once

#define VERSION 2.1
#define VERSION 2.2

void DownloadUpdate(char* url);

0 comments on commit da5f7e1

Please sign in to comment.