Changeset 591 for trunk/GameServer.pas


Ignore:
Timestamp:
Jul 24, 2024, 11:02:31 PM (8 weeks ago)
Author:
chronos
Message:
  • Modified: Draw graphical preview for maps which doesn't have associated image.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GameServer.pas

    r590 r591  
    291291  LandMass := ALandMass;
    292292  DelphiRandSeed := PreviewRND;
    293   if not PreviewElevation then
    294   begin
     293  if not PreviewElevation then begin
    295294    CreateElevation;
    296295    PreviewElevation := True;
     
    13821381  GAlive := 0;
    13831382  GWatching := 1;
    1384   for Loc1 := 0 to MapSize - 1 do
    1385     RealMap[Loc1] := fOcean or ($F shl 27);
    13861383  if FileExists(MapFileName) then begin
    13871384    Map := TMap.Create;
     
    13921389    Move(Map.Tiles[0], RealMap, MapSize * 4);
    13931390    FreeAndNil(Map);
     1391  end else begin
     1392    for Loc1 := 0 to MapSize - 1 do
     1393      RealMap[Loc1] := fOcean or ($F shl 27);
    13941394  end;
    13951395  CL := nil;
Note: See TracChangeset for help on using the changeset viewer.