From c23938eb6a2fd6b01386a398c14d4bfe37d4b4ca Mon Sep 17 00:00:00 2001 From: Philip Date: Thu, 11 Nov 2010 21:38:43 -0500 Subject: [PATCH] Nothing display, for pilojo, called it cracker display for lulz, also won the race against antb, which didnt last long, he went on a baloon trip. --- src/graphics.c | 10 ++++++++-- src/interface.c | 4 ++++ src/main.c | 22 +++++++++++++--------- src/powder.c | 1 - 4 files changed, 25 insertions(+), 12 deletions(-) diff --git a/src/graphics.c b/src/graphics.c index c56d06718..8bd9c281f 100644 --- a/src/graphics.c +++ b/src/graphics.c @@ -1328,8 +1328,14 @@ void draw_parts(pixel *vid) nx = (int)(parts[i].x+0.5f); ny = (int)(parts[i].y+0.5f); - - if(cmode!=CM_HEAT) + if(cmode==7)//nothing display + { + cr = PIXR(ptypes[t].pcolors); + cg = PIXG(ptypes[t].pcolors); + cb = PIXB(ptypes[t].pcolors); + blendpixel(vid, nx, ny, cr, cg, cb, 255); + } + else if(cmode!=CM_HEAT) { if(t==PT_STKM) //Just draw head here { diff --git a/src/interface.c b/src/interface.c index 45d1efdb2..9c32c5c40 100644 --- a/src/interface.c +++ b/src/interface.c @@ -548,6 +548,8 @@ void draw_svf_ui(pixel *vid_buf) break; case 6: drawtext(vid_buf, XRES-29+BARSIZE/*481*/, YRES+(MENUSIZE-13), "\xC4", 100, 150, 255, 255); + case 7: + drawtext(vid_buf, XRES-29+BARSIZE/*481*/, YRES+(MENUSIZE-13), "\xC4", 100, 150, 255, 255); break; } drawrect(vid_buf, XRES-32+BARSIZE/*478*/, YRES+(MENUSIZE-16), 14, 14, 255, 255, 255, 255); @@ -1769,6 +1771,8 @@ void set_cmode(int cm) } else if(cmode==1) strcpy(itc_msg, "Pressure Display"); + else if(cmode==7) + strcpy(itc_msg, "Cracker Display"); else strcpy(itc_msg, "Velocity Display"); } diff --git a/src/main.c b/src/main.c index f513a20e5..a16891f94 100644 --- a/src/main.c +++ b/src/main.c @@ -1266,12 +1266,16 @@ int main(int argc, char *argv[]) { set_cmode(6); } + if(sdl_key=='8') + { + set_cmode(7); + } if(sdl_key==SDLK_LEFTBRACKET) { if(sdl_zoom_trig==1) { ZSIZE -= 1; - if(ZSIZE>32) - ZSIZE = 32; + if(ZSIZE>60) + ZSIZE = 60; if(ZSIZE<2) ZSIZE = 2; ZFACTOR = 256/ZSIZE; @@ -1292,8 +1296,8 @@ int main(int argc, char *argv[]) if(sdl_zoom_trig==1) { ZSIZE += 1; - if(ZSIZE>32) - ZSIZE = 32; + if(ZSIZE>60) + ZSIZE = 60; if(ZSIZE<2) ZSIZE = 2; ZFACTOR = 256/ZSIZE; @@ -1345,7 +1349,7 @@ int main(int argc, char *argv[]) } else if(sdl_key=='c') { - set_cmode((cmode+1) % 7); + set_cmode((cmode+1) % 8); if(it > 50) it = 50; } @@ -1382,8 +1386,8 @@ int main(int argc, char *argv[]) if(sdl_zoom_trig==1) { ZSIZE += sdl_wheel; - if(ZSIZE>32) - ZSIZE = 32; + if(ZSIZE>60) + ZSIZE = 60; if(ZSIZE<2) ZSIZE = 2; ZFACTOR = 256/ZSIZE; @@ -1782,9 +1786,9 @@ int main(int argc, char *argv[]) if(x>=(XRES+BARSIZE-(510-476)) && x<=(XRES+BARSIZE-(510-491)) && !bq) { if(b & SDL_BUTTON_LMASK) - set_cmode((cmode+1) % 7); + set_cmode((cmode+1) % 8); if(b & SDL_BUTTON_RMASK) - set_cmode((cmode+6) % 7); + set_cmode((cmode+7) % 8); save_presets(0); } if(x>=(XRES+BARSIZE-(510-494)) && x<=(XRES+BARSIZE-(510-509)) && !bq) diff --git a/src/powder.c b/src/powder.c index edc8f9e0f..97e6ae765 100644 --- a/src/powder.c +++ b/src/powder.c @@ -1991,7 +1991,6 @@ void update_particles_i(pixel *vid, int start, int inc) { create_part(-1,x+nx,y+ny,PT_WTRV); parts[i].life--; - parts[r>>8].temp = parts[i].temp; parts[i].temp -= 40.0f; } }