Changeset 614 for trunk/GameServer.pas
- Timestamp:
- Sep 14, 2024, 5:43:37 PM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GameServer.pas
r604 r614 75 75 MovieMode: Boolean): Boolean; 76 76 procedure EditMap(const AMapFileName: string; Newlx, Newly, NewLandMass: Integer); 77 procedure FillMap(TerrainType: Cardinal); 77 78 procedure DirectHelp(Command: Integer); 78 79 function ToAutoSaveFileName(FileName: string): string; … … 1363 1364 Notify(ntBackOff); 1364 1365 Inform(pTurn); 1365 ChangeClientWhenDone(cTurn, 0, nil^, 0) 1366 ChangeClientWhenDone(cTurn, 0, nil^, 0); 1367 end; 1368 1369 procedure FillMap(TerrainType: Cardinal); 1370 var 1371 Loc1: Integer; 1372 begin 1373 for Loc1 := 0 to MapSize - 1 do 1374 RealMap[Loc1] := TerrainType or ($F shl 27); 1366 1375 end; 1367 1376 … … 1375 1384 procedure EditMap(const AMapFileName: string; Newlx, Newly, NewLandMass: Integer); 1376 1385 var 1377 p1 , Loc1: Integer;1386 p1: Integer; 1378 1387 Game: TNewGameData; 1379 1388 Map: TMap; … … 1402 1411 FreeAndNil(Map); 1403 1412 end else begin 1404 for Loc1 := 0 to MapSize - 1 do 1405 RealMap[Loc1] := fOcean or ($F shl 27); 1413 FillMap(fOcean); 1406 1414 end; 1407 1415 CL := nil; … … 3069 3077 3070 3078 sRandomMap: 3071 if (Player = 0) and MapGeneratorAvailable then 3072 begin 3079 if (Player = 0) and MapGeneratorAvailable then begin 3073 3080 CreateElevation; 3074 3081 PreviewElevation := False; … … 3076 3083 FillChar(ObserveLevel, MapSize * 4, 0); 3077 3084 DiscoverAll(Player, lObserveSuper); 3078 end 3079 else 3080 Result := eInvalid; 3085 end else Result := eInvalid; 3086 3087 sFillMap: 3088 if Player = 0 then begin 3089 FillMap(TFillMapData(Data).Tile); 3090 FillChar(ObserveLevel, MapSize * 4, 0); 3091 DiscoverAll(Player, lObserveSuper); 3092 end else Result := eInvalid; 3081 3093 3082 3094 sMapGeneratorRequest:
Note:
See TracChangeset
for help on using the changeset viewer.