From fd7120425d38c2aa54a6ae11712526021260790f Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Sat, 1 Oct 2011 18:18:53 +0100 Subject: Changes to QRTZ scattering 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]; -- cgit v0.9.2-21-gd62e