Ignore:
Timestamp:
04/29/16 12:42:28 (9 years ago)
Author:
epyon
Message:
  • mass update (will try to do atomic from now)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lua/lua_area.cc

    r490 r491  
    161161                }
    162162        }
    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;
    164164
    165165
     
    313313{
    314314        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 ) );
    316316        nv::ivec2 shift( amount, amount );
    317317        push_area( L, nv::rectangle( c - shift, c + shift ) );
Note: See TracChangeset for help on using the changeset viewer.