Forgot spacing for new inksplat brush.
Random brushes avoid repeating the same frame twice.
This commit is contained in:
parent
87ac151535
commit
1bbf65f689
3 changed files with 11 additions and 1 deletions
|
|
@ -1,2 +1,3 @@
|
||||||
frames=5
|
frames=5
|
||||||
|
spacing=25
|
||||||
random
|
random
|
||||||
|
|
|
||||||
|
|
@ -158,6 +158,8 @@ $Id$
|
||||||
|
|
||||||
* Other Improvements:
|
* Other Improvements:
|
||||||
-------------------
|
-------------------
|
||||||
|
* Random brushes avoid repeating the same frame twice.
|
||||||
|
|
||||||
* Showing a warning when using save-related options when "nosave" is set.
|
* Showing a warning when using save-related options when "nosave" is set.
|
||||||
(SourceForge Bug #3327493)
|
(SourceForge Bug #3327493)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5473,7 +5473,14 @@ static void blit_brush(int x, int y, int direction)
|
||||||
brush_frame = 0;
|
brush_frame = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
brush_frame = rand() % abs(img_cur_brush_frames);
|
{
|
||||||
|
int old_brush_frame = brush_frame;
|
||||||
|
do
|
||||||
|
{
|
||||||
|
brush_frame = rand() % abs(img_cur_brush_frames);
|
||||||
|
}
|
||||||
|
while (brush_frame == old_brush_frame);
|
||||||
|
}
|
||||||
|
|
||||||
dest.x = x;
|
dest.x = x;
|
||||||
dest.y = y;
|
dest.y = y;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue