Forgot spacing for new inksplat brush.

Random brushes avoid repeating the same frame twice.
This commit is contained in:
William Kendrick 2013-02-18 07:39:06 +00:00
parent 87ac151535
commit 1bbf65f689
3 changed files with 11 additions and 1 deletions

View file

@ -1,2 +1,3 @@
frames=5
spacing=25
random

View file

@ -158,6 +158,8 @@ $Id$
* Other Improvements:
-------------------
* Random brushes avoid repeating the same frame twice.
* Showing a warning when using save-related options when "nosave" is set.
(SourceForge Bug #3327493)

View file

@ -5473,7 +5473,14 @@ static void blit_brush(int x, int y, int direction)
brush_frame = 0;
}
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.y = y;