Changeset 5435


Ignore:
Timestamp:
2014-07-04 12:04:57 (9 years ago)
Author:
pealrist
Message:
 
Location:
2014/27/PekkaR/D2x_2d
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • 2014/27/PekkaR/D2x_2d/D2x_2d/D2x_2d/D2x_2d.cs

    r5432 r5435  
    339339        Timer ajastin = new Timer(); 
    340340        ajastin.Interval = 0.6; 
    341         ajastin.Timeout += delegate { if (!(pelaaja.IsDestroyed || reaktori.IsDestroyed) && RandomGen.NextBool()) Add(reaktori.Ammu(pelaaja)); }; 
     341        ajastin.Timeout += delegate { if (!(pelaaja.IsDestroyed || reaktori.IsDestroyed) && RandomGen.NextBool()) { Ammus am = reaktori.Ammu(pelaaja); am.Color = Color.Red; Add(am); } }; 
    342342        ajastin.Start(); 
    343343        Add(reaktori); 
Note: See TracChangeset for help on using the changeset viewer.