Trying to finish up starter mirror/flip. Background flip-on-load broken!
(Also, need to worry about keeping track of flips and mirroring for Undo/Redo!)
This commit is contained in:
parent
9c450c12f2
commit
9eecf5ab4e
1 changed files with 10 additions and 1 deletions
|
|
@ -12689,7 +12689,8 @@ void load_starter_id(char * saved_id)
|
|||
fgets(starter_id, sizeof(starter_id), fi);
|
||||
starter_id[strlen(starter_id) - 1] = '\0';
|
||||
|
||||
fscanf(fi, "%d %d", &starter_mirrored, &starter_flipped);
|
||||
fscanf(fi, "%d", &starter_mirrored);
|
||||
fscanf(fi, "%d", &starter_flipped);
|
||||
|
||||
fclose(fi);
|
||||
}
|
||||
|
|
@ -12927,6 +12928,8 @@ void flip_starter(void)
|
|||
|
||||
/* Flip overlay: */
|
||||
|
||||
printf("Flipping starter\n");
|
||||
|
||||
orig = img_starter;
|
||||
img_starter = duplicate_surface(orig);
|
||||
|
||||
|
|
@ -12979,8 +12982,14 @@ void flip_starter(void)
|
|||
}
|
||||
else
|
||||
{
|
||||
printf("Couldn't duplicate background!\n");
|
||||
|
||||
img_starter_bkgd = orig;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("No background to flip\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue