Skip to content
Snippets Groups Projects
Commit 87545876 authored by dg's avatar dg
Browse files

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@2900 51575b47-30f0-44d4-a5cc-537603b46e54
parent 01989721
No related branches found
No related tags found
No related merge requests found
......@@ -232,6 +232,15 @@ static float fov_slope(float dx, float dy) {
} \
} \
\
/* we also need to check if the previous spot is blocked */ \
if (dy0 > 0) { \
ry -= 1; \
if (settings->opaque(data->map, x, y)) { \
prev_blocked = 1; \
} \
ry += 1; \
} \
\
switch (settings->shape) { \
case FOV_SHAPE_CIRCLE_PRECALCULATE: \
h = height(settings, dx, data->radius); \
......
......@@ -35,7 +35,7 @@ int push_order(lua_State *L)
{
size_t len;
const char *code = luaL_checklstring(L, 1, &len);
// printf("[profile order] %s\n", code);
printf("[profile order] %s\n", code);
profile_queue *q = malloc(sizeof(profile_queue));
char *d = calloc(len, sizeof(char));
......@@ -82,7 +82,7 @@ int push_event(lua_State *L)
{
size_t len;
const char *code = luaL_checklstring(L, 1, &len);
// printf("[profile event] %s\n", code);
printf("[profile event] %s\n", code);
profile_queue *q = malloc(sizeof(profile_queue));
char *d = calloc(len, sizeof(char));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment