ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/MSVC/Daodan.c
(Generate patch)

Comparing Daodan/MSVC/Daodan.c (file contents):
Revision 574 by gumby, Mon Oct 11 08:22:59 2010 UTC vs.
Revision 586 by gumby, Wed Feb 2 08:17:19 2011 UTC

# Line 234 | Line 234 | bool DDrPatch_Init()
234                  };      
235                  DDrPatch_Const(0x0051BB64, regen_patch);
236          }
237 +        
238 +        //Fix crappy ai2_shownames
239 +        if(1)
240 +        {
241 +                //Set distance above head to 4.0
242 +                DDrPatch_Int32(0x0048C998, 0x005296C8);
243 +                //texture height
244 +                DDrPatch_Byte( 0x0048C9DF, 0x3F );
245 +                //texture       width
246 +                DDrPatch_NOOP( (char*)0x0048C9CA, 6 );
247 +                //Set the text color to whatever we like ;)
248 +                DDrPatch_NOOP( 0x0048C898, 6 );
249 +                DDrPatch_Byte( 0x0048C898, 0x8B );
250 +                DDrPatch_Byte( 0x0048C899, 0xCE );
251 +                DDrPatch_MakeCall( 0x0048C8A3, FLrHook_DebugNameShadeHack);
252 +                
253 +                //Make the background black for additive blending
254 +                DDrPatch_MakeCall( 0x0048C802, FLrHook_DebugNameTextureInit );
255 +        }
256 +
257 +        if(1)
258 +        {
259 +                //DDrPatch_NOOP( 0x004E1957, 6 );
260 +                //DDrPatch_MakeCall( 0x004E17F6, FLrHook_Lasers );
261 +        }
262 +
263          //Flatline related stuff
264          DDrPatch_MakeCall(0x004FBCEA, DDrText_Hook);
265          
266 <        DDrPatch_Int32( 0x004B24D2,     FLrSpawnHack);
266 >        DDrPatch_Int32( 0x004B24D2, FLrSpawnHack);
267  
268          DDrPatch_NOOP(0x004C26CB, 6);
269          DDrPatch_MakeCall( 0x004C26CB, FLrHook_DoorOpen);

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)