View | Details | Raw Unified | Return to bug 22710
Collapse All | Expand All

(-)snake_saver.c (-2 / +2 lines)
Lines 89-95 Link Here
89
				scp->xsize : -scp->xsize);
89
				scp->xsize : -scp->xsize);
90
			for (f=0; f< messagelen; f++)
90
			for (f=0; f< messagelen; f++)
91
				savs[f] = scp->xpos + scp->ypos*scp->xsize;
91
				savs[f] = scp->xpos + scp->ypos*scp->xsize;
92
			sc_vtb_putc(&scp->scr, savs[0], sc->scr_map[*save],
92
			sc_vtb_putc(&scp->scr, savs[0], sc->scr_map[(int) *save],
93
				    (FG_LIGHTGREY | BG_BLACK) << 8);
93
				    (FG_LIGHTGREY | BG_BLACK) << 8);
94
			blanked = 1;
94
			blanked = 1;
95
		}
95
		}
Lines 111-117 Link Here
111
			diry = -diry;
111
			diry = -diry;
112
		savs[0] += dirx + diry;
112
		savs[0] += dirx + diry;
113
		for (f=messagelen-1; f>=0; f--)
113
		for (f=messagelen-1; f>=0; f--)
114
			sc_vtb_putc(&scp->scr, savs[f], sc->scr_map[save[f]],
114
			sc_vtb_putc(&scp->scr, savs[f], sc->scr_map[(int) save[f]],
115
				    (FG_LIGHTGREY | BG_BLACK) << 8);
115
				    (FG_LIGHTGREY | BG_BLACK) << 8);
116
	}
116
	}
117
	else {
117
	else {
(-)star_saver.c (-1 / +1 lines)
Lines 99-105 Link Here
99
		}
99
		}
100
		cell = random() % NUM_STARS;
100
		cell = random() % NUM_STARS;
101
		sc_vtb_putc(&scp->scr, stars[cell][0], 
101
		sc_vtb_putc(&scp->scr, stars[cell][0], 
102
			    sc->scr_map[pattern[stars[cell][1]]],
102
			    sc->scr_map[(int) pattern[stars[cell][1]]],
103
			    colors[random()%sizeof(colors)] << 8);
103
			    colors[random()%sizeof(colors)] << 8);
104
		if ((stars[cell][1]+=(random()%4)) >= sizeof(pattern)-1) {
104
		if ((stars[cell][1]+=(random()%4)) >= sizeof(pattern)-1) {
105
			stars[cell][0] = random() % (scp->xsize*scp->ysize);
105
			stars[cell][0] = random() % (scp->xsize*scp->ysize);

Return to bug 22710