[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Few questions about 5.0 -> 5.1
- From: "Adam D. Moss" <adam@...>
- Date: Fri, 21 Oct 2005 15:50:28 +0100
Jan Kratochvíl wrote:
Well at least in one case i found solution. It is the 3) and it is the
one discussed here today. lua_number2int isn't working for me because
of DirectX. Switching to floats and redefining lua_number2int solves it.
I guess the 'right' solution is telling DirectX to leave doubles
as doubles.
I wonder if there's a run-time test for this mishap? Something
like:
if tostring(bignumber) ~= "bignumber" then
error("DX screwed us again.");
end
--adam