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
raised max for -g to 200
[vor.git]
/
shape.c
diff --git
a/shape.c
b/shape.c
index
9e03f19
..
f457158
100644
(file)
--- a/
shape.c
+++ b/
shape.c
@@
-1,4
+1,5
@@
#include <stdlib.h>
#include <stdlib.h>
+#include "common.h"
#include "shape.h"
void
#include "shape.h"
void
@@
-39,18
+40,6
@@
get_shape(SDL_Surface *img, struct shape *s)
SDL_UnlockSurface(img);
}
SDL_UnlockSurface(img);
}
-#ifndef max
-#define max(a, b) ((a) > (b) ? (a) : (b))
-#endif
-
-#ifndef min
-#define min(a, b) ((a) < (b) ? (a) : (b))
-#endif
-
-#ifndef abs
-#define abs(a) ((a)<=0 ? -(a) : (a))
-#endif
-
int
line_collide(int xov, struct shape *r, uint32_t *rbits, struct shape *s, uint32_t *sbits)
{
int
line_collide(int xov, struct shape *r, uint32_t *rbits, struct shape *s, uint32_t *sbits)
{