Ignore:
Timestamp:
Sep 23, 2013, 11:03:03 PM (9 years ago)
Author:
Sam Hocevar
Message:

core: use vec2::zero and ivec2::zero in a few places.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/branches/lol/src/transp.cpp

    r709 r719  
    2525    ivec2 pos(x, y);
    2626
    27     aa += lol::max(caa - pos, ivec2(0));
    28     bb -= lol::max(caa - pos, ivec2(0));
     27    aa += lol::max(caa - pos, ivec2::zero);
     28    bb -= lol::max(caa - pos, ivec2::zero);
    2929    pos = lol::max(caa, pos);
    3030
    3131    bb = lol::min(bb, cbb - ivec2(1) - pos);
    3232
    33     if (!(bb >= ivec2(0)))
     33    if (!(bb >= ivec2::zero))
    3434        return;
    3535    screen->AddDirty(pos, pos + bb);
Note: See TracChangeset for help on using the changeset viewer.