summaryrefslogtreecommitdiff
path: root/src/powder.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/powder.c')
-rw-r--r--src/powder.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/powder.c b/src/powder.c
index 7747f78..ebe8b3d 100644
--- a/src/powder.c
+++ b/src/powder.c
@@ -931,12 +931,9 @@ inline int create_part(int p, int x, int y, int tv)//the function for creating a
}
if (t==PT_TRON)
{
- int rr,rg,rb;
int randhue = rand()%360;
int randomdir = rand()%4;
- HSV_to_RGB(randhue,255,255,&rr,&rg,&rb);
- parts[i].dcolour = 255<<24 | rr<<16 | rg<<8 | rb;
- parts[i].tmp = 1|(randomdir<<2);//set as a head and a direction
+ parts[i].tmp = 1|(randomdir<<5)|(randhue<<7);//set as a head and a direction
parts[i].tmp2 = 4;//tail
parts[i].life = 5;
}