Changeset 227
- Timestamp:
- May 14, 2020, 9:31:00 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Database.pas
r207 r227 29 29 30 30 CityOwnTile = 13; 31 32 type 33 TGameMode = (moLoading_Fast, moLoading, moMovie, moPlaying); 31 34 32 35 var … … 45 48 GTurn: Integer; { current turn } 46 49 GTestFlags: Integer; 47 Mode: (moLoading_Fast, moLoading, moMovie, moPlaying);50 Mode: TGameMode; 48 51 GWonder: array [0 .. 27] of TWonderInfo; 49 52 ServerVersion: array [0 .. nPl - 1] of integer; -
trunk/LocalPlayer/CityScreen.pas
r211 r227 1657 1657 end 1658 1658 else 1659 if OpenSoundEvent >= 0 then 1659 1660 Play(CityEventSoundItem[OpenSoundEvent]); 1660 1661 OpenSoundEvent := -2; -
trunk/LocalPlayer/MessgEx.pas
r215 r227 212 212 Sleep(1); 213 213 Ticks := NowPrecise; 214 until MovieCancelled or ( MillisecondOf(Ticks - Ticks0) >= 1500);214 until MovieCancelled or (Round((Ticks - Ticks0) / OneMillisecond) >= 1500); 215 215 Hide; 216 216 end; … … 373 373 begin 374 374 p1 := MyRO.Wonder[IconIndex].EffectiveOwner; 375 // TODO: Explicitly clear background to black but in fact BitBlt SRCCOPY should do it 376 Buffer.Canvas.FillRect(0, 0, 1, 1); 375 377 BitBltCanvas(Buffer.Canvas, 0, 0, xSizeBig + 2 * GlowRange, 376 378 ySizeBig + 2 * GlowRange, Canvas, -
trunk/LocalPlayer/Term.pas
r220 r227 6080 6080 NoMap.PaintUnit(xMoving - xMin, yMoving - yMin, UnitInfo, 0); 6081 6081 PaintBufferToScreen(xMin, yMin, xRange, yRange); 6082 {$IFDEF LINUX} 6083 // TODO: Force animation under linux 6084 Application.ProcessMessages; 6085 {$ENDIF} 6082 6086 6083 6087 SliceCount := 0; … … 6085 6089 repeat 6086 6090 if (SliceCount = 0) or 6087 ( MillisecondOf(Ticks - Ticks0) * 12* (SliceCount + 1) div SliceCount6091 (Round(((Ticks - Ticks0) * 12) / OneMillisecond) * (SliceCount + 1) div SliceCount 6088 6092 < MoveTime) then 6089 6093 begin 6090 6094 if not idle or (GameMode = cMovie) then 6091 6095 Application.ProcessMessages; 6092 {$IFDEF LINUX}6093 // TODO: Force animation under linux6094 Application.ProcessMessages;6095 {$ENDIF}6096 6096 Sleep(1); 6097 6097 inc(SliceCount) 6098 6098 end; 6099 6099 Ticks := NowPrecise; 6100 until ( Ticks - Ticks0) / OneMillisecond * 12>= MoveTime;6100 until (((Ticks - Ticks0) * 12) / OneMillisecond) >= MoveTime; 6101 6101 Ticks0 := Ticks 6102 6102 end; … … 6539 6539 time1 := NowPrecise; 6540 6540 SimpleMessage(Format('Map repaint time: %.3f ms', 6541 [ MillisecondOf(time1 - time0)]));6541 [(time1 - time0) / OneMillisecond])); 6542 6542 end 6543 6543 end
Note:
See TracChangeset
for help on using the changeset viewer.