More random explosion

This commit is contained in:
Simon 2011-04-02 15:25:50 +01:00
parent f6b93f9ab6
commit db2937ec79

View File

@ -47,10 +47,10 @@ int update_SING(UPDATE_FUNC_ARGS) {
nb = create_part(-1, x+nxi, y+nxj, PT_NEUT); nb = create_part(-1, x+nxi, y+nxj, PT_NEUT);
} }
if (nb!=-1) { if (nb!=-1) {
parts[nb].life = rand()%300; parts[nb].life = (rand()%300);
parts[nb].temp = MAX_TEMP/2; parts[nb].temp = MAX_TEMP/2;
parts[nb].vx = rand()%10-5; parts[nb].vx = ((float)(rand()%100-50))/10.0f;
parts[nb].vy = rand()%10-5; parts[nb].vy = ((float)(rand()%100-50))/10.0f;
} }
} }
} }