Ignore:
Timestamp:
2016-06-09 22:54:24 (3 years ago)
Author:
sieerinn
Message:

Toiselta pelaajalta poistettu etulyöntiasema palikoiden värjäyksessä

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2016/23/ohjaajat/Punasininen/Punasininen/Punasininen/Punasininen.cs

    r7221 r7223  
    9191                foreach (var tile in tiles) 
    9292                { 
    93                     if (Vector.Distance(red.Position, tile.Position) < coloringDistance) 
    94                         ColorTile(red, (PhysicsObject)tile); 
    95                     if (Vector.Distance(blue.Position, tile.Position) < coloringDistance) 
    96                         ColorTile(blue, (PhysicsObject)tile); 
     93                    bool redClose = Vector.Distance(red.Position, tile.Position) < coloringDistance; 
     94                    bool blueClose = Vector.Distance(blue.Position, tile.Position) < coloringDistance; 
     95 
     96                    if (redClose && !blueClose) ColorTile(red, (PhysicsObject)tile); 
     97                    if (blueClose && !redClose) ColorTile(blue, (PhysicsObject)tile); 
    9798                } 
    9899            }; 
Note: See TracChangeset for help on using the changeset viewer.