diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2011-10-01 17:18:53 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2011-10-01 17:18:53 (GMT) |
| commit | fd7120425d38c2aa54a6ae11712526021260790f (patch) | |
| tree | 15f282142375bd735b5df1bcd11a7da5215a0c9e /src/elements | |
| parent | 218c14c5ea91e14a378a7d9b81b7a8b0efa6848a (diff) | |
| download | powder-fd7120425d38c2aa54a6ae11712526021260790f.zip powder-fd7120425d38c2aa54a6ae11712526021260790f.tar.gz | |
Changes to QRTZ scattering
Diffstat (limited to 'src/elements')
| -rw-r--r-- | src/elements/phot.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/elements/phot.c b/src/elements/phot.c index d353feb..630171a 100644 --- a/src/elements/phot.c +++ b/src/elements/phot.c @@ -45,7 +45,8 @@ int update_PHOT(UPDATE_FUNC_ARGS) { float a = (rand()%360)*3.14159f/180.0f; parts[i].vx = 3.0f*cosf(a); parts[i].vy = 3.0f*sinf(a); - parts[i].ctype = 0x1F<<(rand()%26); + if(parts[i].ctype == 0x3FFFFFFF) + parts[i].ctype = 0x1F<<(rand()%26); parts[i].life++; //Delay death } //r = pmap[y][x]; |
