diff options
Diffstat (limited to 'src/libjin-lua/modules/graphics/je_lua_particle_system.cpp')
| -rw-r--r-- | src/libjin-lua/modules/graphics/je_lua_particle_system.cpp | 16 | 
1 files changed, 8 insertions, 8 deletions
| diff --git a/src/libjin-lua/modules/graphics/je_lua_particle_system.cpp b/src/libjin-lua/modules/graphics/je_lua_particle_system.cpp index 0c42209..70511f7 100644 --- a/src/libjin-lua/modules/graphics/je_lua_particle_system.cpp +++ b/src/libjin-lua/modules/graphics/je_lua_particle_system.cpp @@ -147,10 +147,10 @@ namespace JinEngine                      return 1;                  }                  Vector2<float> floor, ceil; -                floor.x = luax_rawgetnumber(L, 2, 1); -                floor.y = luax_rawgetnumber(L, 2, 2); -                ceil.x = luax_rawgetnumber(L, 3, 1); -                ceil.y = luax_rawgetnumber(L, 3, 2); +                floor.x() = luax_rawgetnumber(L, 2, 1); +                floor.y() = luax_rawgetnumber(L, 2, 2); +                ceil.x() = luax_rawgetnumber(L, 3, 1); +                ceil.y() = luax_rawgetnumber(L, 3, 2);                  ps->setEmitPosition(floor, ceil);              }              else if (luax_gettop(L) >= 2) @@ -161,8 +161,8 @@ namespace JinEngine                      return 1;                  }                  Vector2<float> pos; -                pos.x = luax_rawgetnumber(L, 2, 1); -                pos.y = luax_rawgetnumber(L, 2, 2); +                pos.x() = luax_rawgetnumber(L, 2, 1); +                pos.y() = luax_rawgetnumber(L, 2, 2);                  ps->setEmitPosition(pos);              }              return 0; @@ -194,8 +194,8 @@ namespace JinEngine                  return 1;              }              Vector2<float> ac; -            ac.x = luax_rawgetnumber(L, 2, 1); -            ac.y = luax_rawgetnumber(L, 2, 2); +            ac.x() = luax_rawgetnumber(L, 2, 1); +            ac.y() = luax_rawgetnumber(L, 2, 2);              ps->setParticleLinearAccelaration(ac);              return 0;          } | 
