mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Use luaL_check/optinteger instead of luaL_check/optnumber when getting integer arguments to functions. Resolves issue #1251.
--HG-- branch : minor
This commit is contained in:
@@ -292,13 +292,13 @@ public:
|
||||
* Sets the number of pixels in one meter.
|
||||
* @param scale The number of pixels in one meter. (1m ~= 3.3ft).
|
||||
**/
|
||||
static void setMeter(int scale);
|
||||
static void setMeter(float scale);
|
||||
|
||||
/**
|
||||
* Gets the number of pixels in one meter.
|
||||
* @return The number of pixels in one meter. (1m ~= 3.3ft).
|
||||
**/
|
||||
static int getMeter();
|
||||
static float getMeter();
|
||||
|
||||
/**
|
||||
* Scales a value down according to the current meter in pixels.
|
||||
@@ -359,7 +359,7 @@ public:
|
||||
private:
|
||||
|
||||
// The length of one meter in pixels.
|
||||
static int meter;
|
||||
static float meter;
|
||||
}; // Physics
|
||||
|
||||
} // box2d
|
||||
|
||||
Reference in New Issue
Block a user