diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-04-18 20:31:22 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-04-18 20:31:22 (GMT) |
| commit | 44d70ec6b8497454873f5cb9b088a530e0d17003 (patch) | |
| tree | cc15b1c9ced2c6dd9e0c9bd422a95d2c0c318e05 /src/simulation/Simulation.cpp | |
| parent | e4d1c7141fdc362629c239ff31f97df37a3b92f9 (diff) | |
| download | powder-44d70ec6b8497454873f5cb9b088a530e0d17003.zip powder-44d70ec6b8497454873f5cb9b088a530e0d17003.tar.gz | |
TPT: Alterations to TRON and fancy effects ffa5ccb666
Diffstat (limited to 'src/simulation/Simulation.cpp')
| -rw-r--r-- | src/simulation/Simulation.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp index e8c9d75..d5b4f6b 100644 --- a/src/simulation/Simulation.cpp +++ b/src/simulation/Simulation.cpp @@ -2029,12 +2029,9 @@ int Simulation::create_part(int p, int x, int y, int tv)//the function for creat } 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; } |
