mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-01 20:12:50 +02:00
Prevent accidental infinite loops in lua
Also fix glitch when step_functions[0] is unregistered but others aren't
This commit is contained in:
@@ -189,6 +189,7 @@ extern int ngrav_enable;
|
||||
int limitFPS;
|
||||
int water_equal_test;
|
||||
extern int quickoptions_tooltip_fade;
|
||||
extern int loop_time;
|
||||
|
||||
extern int debug_flags;
|
||||
#define DEBUG_PERF_FRAMECOUNT 256
|
||||
|
@@ -62,6 +62,7 @@ int luacon_particle_getproperty(char * key, int * format);
|
||||
int luacon_transition_getproperty(char * key, int * format);
|
||||
int luacon_element_getproperty(char * key, int * format, unsigned int * modified_stuff);
|
||||
int process_command_lua(pixel *vid_buf, char *console, char *console_error);
|
||||
void lua_hook(lua_State *L, lua_Debug *ar);
|
||||
|
||||
int getPartIndex_curIdx;
|
||||
|
||||
|
Reference in New Issue
Block a user