[Change] Apparently you can't have two parameters in __add, so made add synonymous (same with __sub).
This commit is contained in:
parent
67cd35faa5
commit
7344f88916
@ -63,7 +63,9 @@ static int vectorL_distance(lua_State* L);
|
|||||||
static const luaL_reg vector_methods[] = {
|
static const luaL_reg vector_methods[] = {
|
||||||
{ "new", vectorL_new },
|
{ "new", vectorL_new },
|
||||||
{ "__add", vectorL_add },
|
{ "__add", vectorL_add },
|
||||||
|
{ "add", vectorL_add },
|
||||||
{ "__sub", vectorL_sub },
|
{ "__sub", vectorL_sub },
|
||||||
|
{ "sub", vectorL_sub },
|
||||||
{ "__mul", vectorL_mul },
|
{ "__mul", vectorL_mul },
|
||||||
{ "__div", vectorL_div },
|
{ "__div", vectorL_div },
|
||||||
{ "get", vectorL_get },
|
{ "get", vectorL_get },
|
||||||
|
Loading…
Reference in New Issue
Block a user