Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
vor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make clean now deletes the rock pngs as it should.
[vor.git]
/
main.c
diff --git
a/main.c
b/main.c
index
43a993d
..
be5ae97
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-216,7
+216,7
@@
makebangdots(int xbang, int ybang, int dx, int dy, SDL_Surface *s, int power) {
for(x = 0; x<s->w; x++) {
for(y = 0; y<s->h; y++) {
c = rawpixel[s->pitch/2*y + x];
for(x = 0; x<s->w; x++) {
for(y = 0; y<s->h; y++) {
c = rawpixel[s->pitch/2*y + x];
- if(c && c != SDL_MapRGB(s->format,0,255,0)) {
+ if(c && c != s->format->colorkey) {
theta = rnd()*M_PI*2;
theta = rnd()*M_PI*2;
@@
-565,7
+565,7
@@
init(int fullscreen) {
for(i = 0; i<NROCKS; i++) {
char a[MAX_PATH_LEN];
for(i = 0; i<NROCKS; i++) {
char a[MAX_PATH_LEN];
- snprintf(a,MAX_PATH_LEN,add_path("sprites/rock%d.png"),i);
+ snprintf(a,MAX_PATH_LEN,add_path("sprites/rock%02d.png"),i);
NULLERROR(temp = IMG_Load(a));
NULLERROR(surf_rock[i] = SDL_DisplayFormat(temp));
}
NULLERROR(temp = IMG_Load(a));
NULLERROR(surf_rock[i] = SDL_DisplayFormat(temp));
}