--- deliantra/Deliantra-Client/Client.xs 2008/07/20 02:57:43 1.268 +++ deliantra/Deliantra-Client/Client.xs 2008/07/20 03:46:02 1.269 @@ -673,7 +673,9 @@ const_iv (SDL_GL_MULTISAMPLEBUFFERS), const_iv (SDL_GL_MULTISAMPLESAMPLES), const_iv (SDL_GL_ACCELERATED_VISUAL), - const_iv (SDL_GL_SWAP_CONTROL) + const_iv (SDL_GL_SWAP_CONTROL), + + const_iv (FOW_DARKNESS) # undef const_iv }; @@ -2236,7 +2238,7 @@ mx += self->x - 1; my += self->y - 1; - memset (darkness1, 255, sw1 * sh1); + memset (darkness1, 255 - FOW_DARKNESS, sw1 * sh1); for (y = 0; y < sh1; y++) if (0 <= y + my && y + my < self->rows)