Improper position for declaration.
This commit is contained in:
parent
f8cb4ebe95
commit
6d187a4255
1 changed files with 3 additions and 4 deletions
|
|
@ -300,7 +300,9 @@ static void tornado_drawstalk(magic_api * api, SDL_Surface * canvas, SDL_Surface
|
||||||
int left, right;
|
int left, right;
|
||||||
SDL_Rect dest, src;
|
SDL_Rect dest, src;
|
||||||
int xx, yy, side;
|
int xx, yy, side;
|
||||||
|
int rotation = 0;
|
||||||
|
int p;
|
||||||
|
int ii, ww;
|
||||||
|
|
||||||
/* Compute a nice bezier curve for the stalk, based on the
|
/* Compute a nice bezier curve for the stalk, based on the
|
||||||
base (x,y), leftmost (x), rightmost (x), and top (x,y) */
|
base (x,y), leftmost (x), rightmost (x), and top (x,y) */
|
||||||
|
|
@ -338,8 +340,6 @@ static void tornado_drawstalk(magic_api * api, SDL_Surface * canvas, SDL_Surface
|
||||||
else
|
else
|
||||||
top_w = max(32, n_points * n_points / 1000);
|
top_w = max(32, n_points * n_points / 1000);
|
||||||
|
|
||||||
int rotation = 0;
|
|
||||||
int p;
|
|
||||||
/* Draw the curve: */
|
/* Draw the curve: */
|
||||||
|
|
||||||
for (i = 0; i < n_points - 1; i++)
|
for (i = 0; i < n_points - 1; i++)
|
||||||
|
|
@ -354,7 +354,6 @@ static void tornado_drawstalk(magic_api * api, SDL_Surface * canvas, SDL_Surface
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
int ii, ww;
|
|
||||||
ii = n_points - i;
|
ii = n_points - i;
|
||||||
/* min 10 pixels then ii^2 / 2000 or 4 * ii^2 / canvas->w,
|
/* min 10 pixels then ii^2 / 2000 or 4 * ii^2 / canvas->w,
|
||||||
don't let the top of funnel be wider than the half of canvas */
|
don't let the top of funnel be wider than the half of canvas */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue