diff options
| author | Philip <philip@philip-linuxlaptop.(none)> | 2010-11-20 03:03:52 (GMT) |
|---|---|---|
| committer | Philip <philip@philip-linuxlaptop.(none)> | 2010-11-20 03:03:52 (GMT) |
| commit | a38dddaf5a2106ffb3d112584f657a6c3d97c4fb (patch) | |
| tree | 5bb5260a5cc00e14ec257f8b07ed6230623fcaf6 /src/interface.c | |
| parent | c1182db42d609a181128b818da28d323c39445fc (diff) | |
| download | powder-a38dddaf5a2106ffb3d112584f657a6c3d97c4fb.zip powder-a38dddaf5a2106ffb3d112584f657a6c3d97c4fb.tar.gz | |
Made wall code use #defines. small fix for adjustabl brush.
Diffstat (limited to 'src/interface.c')
| -rw-r--r-- | src/interface.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/interface.c b/src/interface.c index 0ea1bc7..6df2ae5 100644 --- a/src/interface.c +++ b/src/interface.c @@ -1491,7 +1491,7 @@ void menu_ui_v3(pixel *vid_buf, int i, int *sl, int *sr, int b, int bq, int mx, sy = y; if(i==SC_WALL) { - for(n = 122; n<122+UI_WALLCOUNT; n++) + for(n = UI_WALLSTART; n<UI_WALLSTART+UI_WALLCOUNT; n++) { if(n!=SPC_AIR&&n!=SPC_HEAT&&n!=SPC_COOL&&n!=SPC_VACUUM) { @@ -1500,7 +1500,7 @@ void menu_ui_v3(pixel *vid_buf, int i, int *sl, int *sr, int b, int bq, int mx, x = XRES-BARSIZE-26; y += 19; } - x -= draw_tool_xy(vid_buf, x, y, n, mwalls[n-122].colour)+5; + x -= draw_tool_xy(vid_buf, x, y, n, mwalls[n-UI_WALLSTART].colour)+5; if(!bq && mx>=x+32 && mx<x+58 && my>=y && my< y+15) { drawrect(vid_buf, x+30, y-1, 29, 17, 255, 0, 0, 255); @@ -1528,7 +1528,7 @@ void menu_ui_v3(pixel *vid_buf, int i, int *sl, int *sr, int b, int bq, int mx, } else if(i==SC_SPECIAL) { - for(n = 122; n<122+UI_WALLCOUNT; n++) + for(n = UI_WALLSTART; n<UI_WALLSTART+UI_WALLCOUNT; n++) { if(n==SPC_AIR||n==SPC_HEAT||n==SPC_COOL||n==SPC_VACUUM) { @@ -1537,7 +1537,7 @@ void menu_ui_v3(pixel *vid_buf, int i, int *sl, int *sr, int b, int bq, int mx, x = XRES-BARSIZE-26; y += 19; } - x -= draw_tool_xy(vid_buf, x, y, n, mwalls[n-122].colour)+5; + x -= draw_tool_xy(vid_buf, x, y, n, mwalls[n-UI_WALLSTART].colour)+5; if(!bq && mx>=x+32 && mx<x+58 && my>=y && my< y+15) { drawrect(vid_buf, x+30, y-1, 29, 17, 255, 0, 0, 255); |
