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

Comparing Daodan/src/Daodan_BSL.c (file contents):
Revision 688 by alloc, Mon Mar 4 14:21:23 2013 UTC vs.
Revision 689 by alloc, Mon Mar 4 15:52:19 2013 UTC

# Line 366 | Line 366 | uint16_t ONICALL bsl_chrname(sl_callinfo
366                  ret->val.value_str32 = "NULL";
367                  return 0;
368          }
369 <        name = &ONgGameState->CharacterStorage[index].Name;
369 >        name = (char*)(&ONgGameState->CharacterStorage[index].Name);
370          if (numargs == 2) {
371                  strncpy(name, (char*)args[1].val.value_str32, 31);
372          }
# Line 619 | Line 619 | uint16_t ONICALL bsl_sprintf(sl_callinfo
619   {
620          char output[1024];
621          char buffer[1024];
622 <        int i;
622 >        unsigned int i;
623          char* placeinoutput = output;
624          char* placeininput = args[0].val.value_str32;
625          int formatnum = 0;
# Line 883 | Line 883 | uint16_t ONICALL new_text(sl_callinfo* c
883  
884          if(!TSrTest){
885                  TMrInstance_GetDataPtr( 'TSFF', "Tahoma", &TSFFTahoma);
886 <        returnval = TSrContext_New( TSFFTahoma, 7, 1, 1,  0, &TSrTest);
886 >                returnval = TSrContext_New( TSFFTahoma, 7, 1, 1,  0, &TSrTest);
887          }
888 <        DDrPatch_MakeCall(0x004FBCEA, DDrText_Hook);
888 >        DDrPatch_MakeCall((void*)0x004FBCEA, (void*)DDrText_Hook);
889          
890          *dontuse2 = 1;
891          return 0;
# Line 931 | Line 931 | void SLrDaodan_Initalize()
931  
932   void SLrDaodan_Patch()
933   {
934 <        DDrPatch_Int32(OniExe + 0x000f3755, (int)cinematic_start_patch);
934 >        DDrPatch_Int32((int*)(OniExe + 0x000f3755), (int)cinematic_start_patch);
935   }

Diff Legend

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