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 877 by alloc, Sun Jun 2 11:25:34 2013 UTC vs.
Revision 882 by alloc, Tue Jun 4 15:35:02 2013 UTC

# Line 84 | Line 84 | uint16_t ONICALL bsl_int32rand(sl_callin
84                  start = args[0].val.value_int32;
85                  end = args[1].val.value_int32;
86          }
87 <        
87 >
88          ret->val.value_int32 = start + (rand() % (uint32_t)(end - start + 1));
89          ret->type = sl_int32;
90          return 0;
# Line 856 | Line 856 | void SLrDaodan_Initialize()
856          SLrScript_Command_Register_Void("sprintf", "C-style sprintf.", "", bsl_sprintf);
857          SLrScript_Command_Register_ReturnType("st", "Prints to console in color", "", sl_void, bsl_dprintcolored);
858          SLrScript_Command_Register_ReturnType("d_dprint", "Prints to console in color", "", sl_void, bsl_dprintcolored);
859 +
860 +        SLrGlobalVariable_Register_Int32("show_triggervolumes", "Show trigger volumes", &OBJgTriggerVolume_Visible);
861   }
862  
863   // Patch for cinematic_start to work on widescreen resolutions

Diff Legend

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