… | |
… | |
671 | const_iv (SDL_GL_ACCUM_ALPHA_SIZE), |
671 | const_iv (SDL_GL_ACCUM_ALPHA_SIZE), |
672 | const_iv (SDL_GL_STEREO), |
672 | const_iv (SDL_GL_STEREO), |
673 | const_iv (SDL_GL_MULTISAMPLEBUFFERS), |
673 | const_iv (SDL_GL_MULTISAMPLEBUFFERS), |
674 | const_iv (SDL_GL_MULTISAMPLESAMPLES), |
674 | const_iv (SDL_GL_MULTISAMPLESAMPLES), |
675 | const_iv (SDL_GL_ACCELERATED_VISUAL), |
675 | const_iv (SDL_GL_ACCELERATED_VISUAL), |
676 | const_iv (SDL_GL_SWAP_CONTROL) |
676 | const_iv (SDL_GL_SWAP_CONTROL), |
|
|
677 | |
|
|
678 | const_iv (FOW_DARKNESS) |
677 | # undef const_iv |
679 | # undef const_iv |
678 | }; |
680 | }; |
679 | |
681 | |
680 | for (civ = const_iv + sizeof (const_iv) / sizeof (const_iv [0]); civ-- > const_iv; ) |
682 | for (civ = const_iv + sizeof (const_iv) / sizeof (const_iv [0]); civ-- > const_iv; ) |
681 | newCONSTSUB (stash, (char *)civ->name, newSViv (civ->iv)); |
683 | newCONSTSUB (stash, (char *)civ->name, newSViv (civ->iv)); |
… | |
… | |
2234 | SvCUR_set (darkness3_sv, sw34 * sh3); |
2236 | SvCUR_set (darkness3_sv, sw34 * sh3); |
2235 | |
2237 | |
2236 | mx += self->x - 1; |
2238 | mx += self->x - 1; |
2237 | my += self->y - 1; |
2239 | my += self->y - 1; |
2238 | |
2240 | |
2239 | memset (darkness1, 255, sw1 * sh1); |
2241 | memset (darkness1, 255 - FOW_DARKNESS, sw1 * sh1); |
2240 | |
2242 | |
2241 | for (y = 0; y < sh1; y++) |
2243 | for (y = 0; y < sh1; y++) |
2242 | if (0 <= y + my && y + my < self->rows) |
2244 | if (0 <= y + my && y + my < self->rows) |
2243 | { |
2245 | { |
2244 | maprow *row = self->row + (y + my); |
2246 | maprow *row = self->row + (y + my); |