summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2011-07-12 18:06:59 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-07-12 18:06:59 (GMT)
commit4c685c76652b15636fed5168741b99431e24c470 (patch)
tree957b70afc1f821e72bc2eae359b3a48b88b21f8c /src
parent965810d5e391b54ed8ed2f73f36dbbdeacf4da9b (diff)
downloadpowder-4c685c76652b15636fed5168741b99431e24c470.zip
powder-4c685c76652b15636fed5168741b99431e24c470.tar.gz
Revert variable names for Brush
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 075cab0..484dce4 100644
--- a/src/main.c
+++ b/src/main.c
@@ -3055,7 +3055,7 @@ int main(int argc, char *argv[])
{
for (j=-bsy; j<=bsy; j++)
for (i=-bsx; i<=bsx; i++)
- if (x+i>0 && y+j>0 && x+i<XRES && y+j<YRES && InCurrentBrush(i,j,bsx,bsy))
+ if (lx+i>0 && ly+j>0 && lx+i<XRES && ly+j<YRES && InCurrentBrush(i,j,bsx,bsy))
{
vx[(ly+j)/CELL][(lx+i)/CELL] += (line_x-lx)*0.002f;
vy[(ly+j)/CELL][(lx+i)/CELL] += (line_y-ly)*0.002f;