/usr/src/castle-game-engine-4.1.1/base/castlevectors_vector3fromstr.inc is in castle-game-engine-src 4.1.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | var
SPosition: Integer;
begin
SPosition := 1;
result[0] := StrToFloat(NextToken(S, SPosition));
result[1] := StrToFloat(NextToken(S, SPosition));
result[2] := StrToFloat(NextToken(S, SPosition));
if NextToken(S, SPosition) <> '' then
raise EConvertError.Create('Expected end of data when reading vector from string');
{ This could also be implemented by DeFormat, but this is faster
(which is important for e.g. reading 3D data where this function may be used
often) }
end;
|