Commit 8754587657bac2aece7f5eaad7a544f5345508bc

Authored by dg
1 parent 01989721

fix


git-svn-id: http://svn.net-core.org/repos/t-engine4@2900 51575b47-30f0-44d4-a5cc-537603b46e54
Showing 2 changed files with 11 additions and 2 deletions
... ... @@ -232,6 +232,15 @@ static float fov_slope(float dx, float dy) {
232 232 } \
233 233 } \
234 234 \
  235 + /* we also need to check if the previous spot is blocked */ \
  236 + if (dy0 > 0) { \
  237 + ry -= 1; \
  238 + if (settings->opaque(data->map, x, y)) { \
  239 + prev_blocked = 1; \
  240 + } \
  241 + ry += 1; \
  242 + } \
  243 + \
235 244 switch (settings->shape) { \
236 245 case FOV_SHAPE_CIRCLE_PRECALCULATE: \
237 246 h = height(settings, dx, data->radius); \
... ...
... ... @@ -35,7 +35,7 @@ int push_order(lua_State *L)
35 35 {
36 36 size_t len;
37 37 const char *code = luaL_checklstring(L, 1, &len);
38   -// printf("[profile order] %s\n", code);
  38 + printf("[profile order] %s\n", code);
39 39
40 40 profile_queue *q = malloc(sizeof(profile_queue));
41 41 char *d = calloc(len, sizeof(char));
... ... @@ -82,7 +82,7 @@ int push_event(lua_State *L)
82 82 {
83 83 size_t len;
84 84 const char *code = luaL_checklstring(L, 1, &len);
85   -// printf("[profile event] %s\n", code);
  85 + printf("[profile event] %s\n", code);
86 86
87 87 profile_queue *q = malloc(sizeof(profile_queue));
88 88 char *d = calloc(len, sizeof(char));
... ...