git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5628 c06c8d41-db1a-0410-9941-cceddc491573
WZTIVJJVK7CAHU5D2IYPH7TWGTLBBYPJZJYPGWKCDGM3JQ6Z6VKAC
VJPJ34M3NKHTKLKVCH7VEHQRIALQYRIBL7MFVVIVA2AO2FHGNT7AC
5FJOO7TPXXTY66X4O242AWSMYNDLG2NI2NKSHDELLDIMAOE5OBTAC
KFULGQQOHWUTXOM3BXCCYPGGVGGY4Z6265XUFRCBPNLTZAEHJZSQC
SS6MUIJYTGIVBYU356Z563QJWLJ47QNHSJWS7GJTS7EATZH2ESJQC
V2LAHZJVKBRUAKHRXZZTHOAAHKHUS4CWWZICYEJHTDI6IA7X4LUQC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
BWHU47MJ7KAVKMKMRBVYLOHUCASSNVCGPC3SPMNBAC7DLI6XX2YQC
GXXYPBFEWKRZQ6OBGYNS2EXZN52NGNV3UU3WM6S5R74CMJBAKGTAC
6TEISZD7HYSSL24EOKIBNURU66KGSQX7B7SNAHBP4DQSAOTGH2MQC
POP6UTTHSJGDU5NU7ENQJOZVFUHYM63HJ6HLPXDDLK7XFIP4XEIQC
RQR4PTMGQLTRWLYRU3KXIIDGND7FBORESJWMWFVD3WYU5SISZXAAC
JN4GPMQCXOY5ICTLPLWP6DXBFULN4GMAEK7T4GXTZVIJAUUKBBYAC
TO43FWKHNIA5MVDOFXYHQODTLBQYEZKX5UIUGID57436UF7G2EXQC
IQFLSXLOKMSMM65BL7XOEI5ZP55WKZ7BFBOIA44AMTPNJ7DAQXBQC
int ystart = you.y_pos - 9, xstart = you.x_pos - 9;
int yend = you.y_pos + 9, xend = you.x_pos + 9;
if (xstart < 0) xstart = 0;
if (ystart < 0) ystart = 0;
if (xend >= GXM) xend = GXM - 1;
if (yend >= GYM) yend = GYM - 1;
const int ystart = MAX(0, you.y_pos - 9);
const int yend = MIN(GYM - 1, you.y_pos + 9);
const int xstart = MAX(0, you.x_pos - 9);
const int xend = MIN(GXM - 1, you.x_pos + 9);
int ystart = you.y_pos - 9, xstart = you.x_pos - 9;
int yend = you.y_pos + 9, xend = you.x_pos + 9;
if ( xstart < 0 ) xstart = 0;
if ( ystart < 0 ) ystart = 0;
if ( xend >= GXM ) xend = GXM - 1;
if ( yend >= GYM ) yend = GYM - 1;
const int ystart = MAX(0, you.y_pos - 9);
const int yend = MIN(GYM - 1, you.y_pos + 9);
const int xstart = MAX(0, you.x_pos - 9);
const int xend = MIN(GXM - 1, you.x_pos + 9);
xstart = you.x_pos - 9;
ystart = you.y_pos - 9;
xend = you.x_pos + 9;
yend = you.y_pos + 9;
if ( xstart < 0 ) xstart = 0;
if ( ystart < 0 ) ystart = 0;
if ( xend >= GXM ) xend = GXM - 1;
if ( yend >= GYM ) yend = GYM - 1;
ystart = MAX(0, you.y_pos - 9);
xstart = MAX(0, you.x_pos - 9);
yend = MIN(GYM - 1, you.y_pos + 9);
xend = MIN(GXM - 1, you.x_pos + 9);