SRL Archive - Bugs

Issue with TileToMS


Bad Boy JH

2010-09-22 09:16:51

I have started scripting something, however there seems to be an issuewith TileToMS…
when I ran this…
program new;
{$DEFINE SMART}
{$i srl\srl.scar}
{$i reflection\reflection.simba}

var
mark: Integer;
TPoint: TPoint;
begin
SetupSRL;
SetupReflectionEx(True);
MarkTime(Mark);
TPoint := TileToMs(GetMyPos, 0);
Writeln('Time From Mark: ' + IntToStr(TimeFromMark(Mark)));
Writeln('Distance: ' + IntToStr(Distance(TPoint.x, TPOint.y, MSCX, MSCY)));
end.

I got this as an output

Time From Mark: 10000
Distance: 311

Now the exactness (if thats a word) of the Time from mark being 10000, probably meens an error in the coding… sorry I can't investigate further… got school tomorrow, so I need sleep…

gamer716

2010-09-22 12:16:13

did u apply the fixes to TileToMS?
http://villavu.com/forum/showthread.php?t=59007

Bad Boy JH

2010-09-22 20:48:16

surely bugfixes should be COMITTED! its just silly if we have the ability to do something like that, and not USE it…