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

@ -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;