Fixed possible uninitialised variable uses
This commit is contained in:
parent
889c437374
commit
000d521676
8
rc.c
8
rc.c
|
@ -4433,6 +4433,9 @@ void dogravity(sprite_t *s) {
|
|||
int macex,macey;
|
||||
int numcaught = 0;
|
||||
|
||||
// initialise just in case
|
||||
macex = s->x ; macey = s->y;
|
||||
|
||||
s->slamming = 0;
|
||||
|
||||
/* reset fruit type counter */
|
||||
|
@ -4452,8 +4455,7 @@ void dogravity(sprite_t *s) {
|
|||
|
||||
if (!s2) {
|
||||
// should never happen
|
||||
macex = 0;
|
||||
macey = 0;
|
||||
macex = s->x ; macey = s->y;
|
||||
} else {
|
||||
int xx,yy;
|
||||
macex = s2->x;
|
||||
|
@ -6004,7 +6006,7 @@ void initsdl(void) {
|
|||
void getfruit(sprite_t *giveto, sprite_t *fruit, int multiplier) {
|
||||
char tempm[MIDBUFLEN];
|
||||
int gotscore = fruit->score;
|
||||
int modscore;
|
||||
int modscore = gotscore; // default
|
||||
int i;
|
||||
|
||||
/* kill the fruit */
|
||||
|
|
Loading…
Reference in New Issue