Changeset 18 for trunk


Ignore:
Timestamp:
Jan 8, 2017, 11:30:16 AM (8 years ago)
Author:
chronos
Message:
  • Fixed: Build on Windows.
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/GameServer.pas

    r17 r18  
    324324  T := NowPrecise;
    325325  PutMessage(1 shl 16 + 2, Format('CLIENT: took %.1f ms',
    326     [MilliSecondOf(T - LastClientTime)]));
     326    [(T - LastClientTime) / OneMillisecond]));
    327327  LastClientTime := T;
    328328  PutMessage(1 shl 16 + 2, Format('CLIENT: calling %d (%s)',
  • trunk/LocalPlayer/PVSB.pas

    r17 r18  
    55
    66uses
     7  {$IFDEF WINDOWS}
     8  Windows,
     9  {$ENDIF}
    710  LCLIntf, LCLType, LMessages, Messages, SysUtils;
    811
  • trunk/LocalPlayer/Term.pas

    r17 r18  
    55
    66uses
     7  {$IFDEF Windows}
     8  Windows,
     9  {$ENDIF}
    710  Protocol, Tribes, PVSB, ClientTools, ScreenTools, BaseWin, Messg, ButtonBase,
    811
     
    61076110          end;
    61086111          Ticks := NowPrecise;
    6109         until MillisecondOf(Ticks - Ticks0) * 12 >= MoveTime;
     6112        until (Ticks - Ticks0) / OneMillisecond * 12 >= MoveTime;
    61106113        Ticks0 := Ticks
    61116114      end;
  • trunk/ScreenTools.pas

    r17 r18  
    55
    66uses
     7  {$IFDEF WINDOWS}
     8  Windows,
     9  {$ENDIF}
    710  StringTables,
    811  LCLIntf, LCLType, LMessages, Messages, SysUtils, Classes, Graphics, Controls,
  • trunk/Sound.pas

    r17 r18  
    1313  private
    1414    {$IFDEF WINDOWS}
    15     procedure OnMCI(var m: TMessage); message MM_MCINOTIFY;}
     15    procedure OnMCI(var m: TMessage); message MM_MCINOTIFY;
    1616    {$ENDIF}
    1717  end;
     
    5858  {$IFDEF WINDOWS}
    5959  if FDeviceID <> 0 then
    60     mciSendCommand(FDeviceID, MCI_CLOSE, MCI_WAIT, 0);}
     60    mciSendCommand(FDeviceID, MCI_CLOSE, MCI_WAIT, 0);
    6161  {$ENDIF}
    6262  inherited Destroy;
Note: See TracChangeset for help on using the changeset viewer.