Nuke trees
This commit is contained in:
parent
f5e73b96d3
commit
0832441c91
|
@ -582,11 +582,9 @@ void shape_set_sensor(struct phys2d_shape *shape, int sensor)
|
|||
{
|
||||
if (!shape->shape) {
|
||||
struct phys2d_edge *edge = shape->data;
|
||||
|
||||
for (int i = 0; i < arrlen(edge->shapes); i++) {
|
||||
|
||||
for (int i = 0; i < arrlen(edge->shapes); i++)
|
||||
cpShapeSetSensor(edge->shapes[i], sensor);
|
||||
YughInfo("Setting shape %d sensor to %d", i, sensor);
|
||||
}
|
||||
} else
|
||||
cpShapeSetSensor(shape->shape, sensor);
|
||||
}
|
||||
|
|
|
@ -266,6 +266,14 @@ duk_ret_t duk_nuke(duk_context *duk)
|
|||
duk_push_number(duk,rect.h);
|
||||
duk_put_prop_string(duk,-2,"h");
|
||||
return 1;
|
||||
|
||||
case 11:
|
||||
duk_push_boolean(duk, nuke_push_tree_id(duk_to_string(duk, 1), duk_to_int(duk,2)));
|
||||
return 1;
|
||||
|
||||
case 12:
|
||||
nuke_tree_pop();
|
||||
return 0;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
|
||||
#include "window.h"
|
||||
#include "texture.h"
|
||||
#include "log.h"
|
||||
|
||||
#define MAX_VERTEX_BUFFER 512 * 1024
|
||||
#define MAX_ELEMENT_BUFFER 128 * 1024
|
||||
|
|
|
@ -139,6 +139,7 @@ void print_devices()
|
|||
|
||||
void sound_init()
|
||||
{
|
||||
return;
|
||||
mixer_init();
|
||||
PaError err = Pa_Initialize();
|
||||
check_pa_err(err);
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#endif
|
||||
|
||||
#ifdef __linux__
|
||||
#include <execinfo.h>
|
||||
//#include <execinfo.h>
|
||||
#endif
|
||||
|
||||
#include <signal.h>
|
||||
|
@ -62,7 +62,7 @@ int fps;
|
|||
|
||||
void seghandle(int sig) {
|
||||
#ifdef __linux__
|
||||
void *ents[512];
|
||||
/* void *ents[512];
|
||||
size_t size;
|
||||
|
||||
size = backtrace(ents, 512);
|
||||
|
@ -84,7 +84,7 @@ void seghandle(int sig) {
|
|||
|
||||
duk_dump_stack(duk);
|
||||
|
||||
exit(1);
|
||||
exit(1);*/
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue