Age | Commit message (Collapse) | Author |
|
do not differenciate between the players and the enemies as well
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
There was multiple problems with this function:
void inverse(int *bool);
First, we use "bool", which is actually a standard type, as the identifier.
Then, we cannot pass different types to the function without cast.
Then, inverse is not a meaninful name.
At last, we have to pass the address of the variable we want to inverse.
Fixed all these points by replacing the function by a macro :
#define inverse_boolean(_b) /* impl */
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Since no prototype for Fchangercurseurpersos was given, a nasty
exception was raised when we passed an invalid data to this function.
By providing its prototype, the compiler gives us a clue about the usage
of an invalid pointer type that we can fix.
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
we used to try to open an image whose filename is wrong. Since we do not
check the return of this function, the program crashes.
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
it is safe to pass a null pointer to SDL_FreeSurface()
BTW: change the format of the files from dos to unix
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|