fpc/tests/webtbs/tw37286.pp
svenbarth fbb8e161fa + add test for already fixed Mantis #37286
git-svn-id: trunk@46408 -
2020-08-13 05:42:32 +00:00

21 lines
295 B
ObjectPascal

{ %NORUN }
program tw37286;
{$mode objfpc}
var preShiftWorldDx: LongInt;
WorldDx: LongInt;
playWidth: LongInt;
procedure ShiftWorld(Dir: LongInt); inline;
begin
preShiftWorldDx:= WorldDx;
WorldDx:= WorldDx + LongInt(Dir * LongInt(playWidth));
end;
begin
ShiftWorld(-1);
end.