hedgewars/uGearsHandlers.pas
branchwebgl
changeset 9521 8054d9d775fd
parent 9080 9b42757d7e71
child 9950 2759212a27de
equal deleted inserted replaced
9282:92af50454cf2 9521:8054d9d775fd
    29 
    29 
    30 uses SDLh, uFloat, uCollisions;
    30 uses SDLh, uFloat, uCollisions;
    31 
    31 
    32 
    32 
    33 
    33 
    34 const dirs: array[0..3] of TPoint =   ((X: 0; Y: -1), (X: 1; Y: 0),(X: 0; Y: 1),(X: -1; Y: 0));
    34 const dirs: array[0..3] of TPoint = ((x: 0;  y: -1),
       
    35                                      (x: 1;  y:  0),
       
    36                                      (x: 0;  y:  1),
       
    37                                      (x: -1; y:  0));
    35 
    38 
    36 procedure PrevAngle(Gear: PGear; dA: LongInt); inline;
    39 procedure PrevAngle(Gear: PGear; dA: LongInt); inline;
    37 begin
    40 begin
    38     Gear^.Angle := (LongInt(Gear^.Angle) - dA) and 3
    41     Gear^.Angle := (LongInt(Gear^.Angle) - dA) and 3
    39 end;
    42 end;