summaryrefslogtreecommitdiff
path: root/src/powder.c
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-04-17 21:38:27 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-04-17 21:38:27 (GMT)
commitffa5ccb6660d77662825db74a2de1b1ab45099c3 (patch)
treee197980ab13949884c8a46fc5bdd5e5ae8cf91a9 /src/powder.c
parenta7e1774d41f6b3f062f16cde5352b400a7585ce8 (diff)
downloadpowder-ffa5ccb6660d77662825db74a2de1b1ab45099c3.zip
powder-ffa5ccb6660d77662825db74a2de1b1ab45099c3.tar.gz
Alterations to TRON and fancy effects
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;
}