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; |
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 |