mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-10-24 23:25:28 +00:00
firework: another optimization
This commit is contained in:
parent
82cb586ba1
commit
817d47c4d9
@ -125,14 +125,11 @@ label_180:
|
||||
|
||||
label_290:
|
||||
/* Draw explosion near x_old, y_old */
|
||||
x_old=floor(x_old);
|
||||
y_old=floor(y_old);
|
||||
xpos=floor(x_old);
|
||||
ypos=floor(y_old);
|
||||
|
||||
xpos=(random()%20)-10; // x +/- 10
|
||||
ypos=(random()%20)-10; // y +/- 10
|
||||
|
||||
xpos+=x_old;
|
||||
ypos+=y_old;
|
||||
xpos+=(random()%20)-10; // x +/- 10
|
||||
ypos+=(random()%20)-10; // y +/- 10
|
||||
|
||||
hcolor_equals(color_group*4+3); // draw white (with fringes)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user