diff options
| author | jacksonmj <jacksonmj@jacksonmj.none> | 2011-01-15 16:23:51 (GMT) |
|---|---|---|
| committer | jacksonmj <jacksonmj@jacksonmj.none> | 2011-01-15 16:23:51 (GMT) |
| commit | 1833be451f1bb57b6b0f2709a4c98da9356542d4 (patch) | |
| tree | 18f0aabdef426e33c6428e5af9a15c3de138ae9a /src/graphics.c | |
| parent | c7213127e52b0484b9b4b87fd57877ff0c523a59 (diff) | |
| parent | 2d79fa5cfe104e6067818f13e3486ca45fe23815 (diff) | |
| download | powder-1833be451f1bb57b6b0f2709a4c98da9356542d4.zip powder-1833be451f1bb57b6b0f2709a4c98da9356542d4.tar.gz | |
Merge branch 'cracker64' into dev
Conflicts:
includes/powder.h
src/graphics.c
src/main.c
src/powder.c
Diffstat (limited to 'src/graphics.c')
| -rw-r--r-- | src/graphics.c | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/src/graphics.c b/src/graphics.c index b541711..06cd6fb 100644 --- a/src/graphics.c +++ b/src/graphics.c @@ -1667,7 +1667,7 @@ void draw_parts(pixel *vid) } else if (t==PT_QRTZ || t==PT_PQRT) { - int z = parts[i].tmp; + int z = parts[i].tmp - 5; if (parts[i].temp>(ptransitions[t].thv-800.0f)) { float frequency = 3.1415/(2*ptransitions[t].thv-(ptransitions[t].thv-800.0f)); @@ -1834,6 +1834,36 @@ void draw_parts(pixel *vid) } } } + else if (t==PT_PRTI && DEBUG_MODE) + { + blendpixel(vid,nx,ny, PIXR(ptypes[t].pcolors), PIXG(ptypes[t].pcolors), PIXB(ptypes[t].pcolors),255); + if (mousex==(nx) && mousey==(ny)) + { + int z; + for (z = 0; z<NPART; z++) { + if (parts[z].type) + { + if (parts[z].type==PT_PRTO&&parts[z].tmp==parts[i].tmp) + xor_line(nx,ny,(int)(parts[z].x+0.5f),(int)(parts[z].y+0.5f),vid); + } + } + } + } + else if (t==PT_PRTO && DEBUG_MODE) + { + blendpixel(vid,nx,ny, PIXR(ptypes[t].pcolors), PIXG(ptypes[t].pcolors), PIXB(ptypes[t].pcolors),255); + if (mousex==(nx) && mousey==(ny)) + { + int z; + for (z = 0; z<NPART; z++) { + if (parts[z].type) + { + if (parts[z].type==PT_PRTI&&parts[z].tmp==parts[i].tmp) + xor_line(nx,ny,(int)(parts[z].x+0.5f),(int)(parts[z].y+0.5f),vid); + } + } + } + } else if ((t==PT_BIZR||t==PT_BIZRG)&&parts[i].ctype) { cg = 0; |
