Skip to content

Commit

Permalink
res binary export fix for maps
Browse files Browse the repository at this point in the history
  • Loading branch information
RetroNick2020 committed Jun 28, 2022
1 parent 603930b commit fb16639
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion mapexiportprops.pas
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ procedure TMapExportForm.InitComboBoxes;
Combocompiler.Items.Clear;
ComboCompiler.Items.Add('None');
ComboCompiler.Items.Add('Basic');
ComboCompiler.Items.Add('Basic (Line#');
ComboCompiler.Items.Add('Basic (Line#)');
ComboCompiler.Items.Add('C');
ComboCompiler.Items.Add('Pascal');
ComboCompiler.ItemIndex:=0;
Expand Down
2 changes: 1 addition & 1 deletion rmabout.pas
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, ExtCtrls,lclintf;

Const
ProgramName ='Raster Master v1.1 R47';
ProgramName ='Raster Master v1.1 R48';
ProgramLicense = 'Released under MIT License';

type
Expand Down
6 changes: 3 additions & 3 deletions rwmap.pas
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ procedure ResExportMaps(var F:File);
Tile : TileRec;
mwidth,mheight : integer;
MapCount : integer;
Line : array[0..255] of integer;
Line : array[0..255] of smallint;
begin
MapCount:=MapCoreBase.GetMapCount;

Expand All @@ -605,7 +605,7 @@ procedure ResExportMaps(var F:File);
Line[1]:=mheight;
Line[2]:=MapProps.tilewidth;
Line[3]:=MapProps.tileheight;
Blockwrite(F,Line,4*sizeof(integer)); //write the header
Blockwrite(F,Line,4*sizeof(smallint)); //write the header

for j:=0 to mheight -1 do
begin
Expand All @@ -615,7 +615,7 @@ procedure ResExportMaps(var F:File);
Line[i]:=Tile.ImageIndex;
end;
{$I-}
Blockwrite(F,Line,mwidth*sizeof(integer));
Blockwrite(F,Line,mwidth*sizeof(smallint));
{$I+}
if IORESULT<>0 then exit;
end;
Expand Down

0 comments on commit fb16639

Please sign in to comment.