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:
Alex Szpakowski
2017-07-16 12:17:50 -03:00
parent abcade9421
commit 34ebe18f14
30 changed files with 127 additions and 127 deletions
+3 -3
View File
@@ -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