Changeset 491 for trunk/src/lua/lua_area.cc
- Timestamp:
- 04/29/16 12:42:28 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lua/lua_area.cc
r490 r491 161 161 } 162 162 } 163 if (c->y != a->ul.y && c->y != a->lr.y && c->x == a->ul.x + 1 ) c->x = a-> ul.x;163 if (c->y != a->ul.y && c->y != a->lr.y && c->x == a->ul.x + 1 ) c->x = a->lr.x; 164 164 165 165 … … 313 313 { 314 314 nv::ivec2 c = to_coord( L, 1 ); 315 int amount = static_cast< int >( lua_tointeger( L, 1) );315 int amount = static_cast< int >( lua_tointeger( L, 2 ) ); 316 316 nv::ivec2 shift( amount, amount ); 317 317 push_area( L, nv::rectangle( c - shift, c + shift ) );
Note: See TracChangeset
for help on using the changeset viewer.