Ignore:
Timestamp:
Mar 28, 2013, 12:43:11 PM (7 years ago)
Author:
sam
Message:

base: a few minor style tweaks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/tileset.cpp

    r2609 r2610  
    6868{
    6969    Init(path);
    70 
    71     m_drawgroup = DRAWGROUP_BEFORE;
    7270}
    7371
     
    8684        if (size.x <= 0 || size.y <= 0)
    8785            size = ivec2(32, 32);
    88         count = ivec2(max(1, m_data->m_image_size.x / size.x),
    89                       max(1, m_data->m_image_size.y / size.y));
     86        count = max(ivec2(1, 1), m_data->m_image_size / size);
    9087    }
    9188
     
    9693                      size * ivec2(i + 1, j + 1)));
    9794    }
    98 
    99     m_drawgroup = DRAWGROUP_BEFORE;
    10095}
    10196
     
    109104    m_data->m_texture_size = ivec2(PotUp(m_data->m_image_size.x),
    110105                                   PotUp(m_data->m_image_size.y));
     106
     107    m_drawgroup = DRAWGROUP_BEFORE;
    111108}
    112109
     
    195192ivec2 TileSet::GetTileSize(int tileid) const
    196193{
    197     (void)tileid;
    198 
    199194    ibox2 const &box = m_data->m_tiles[tileid].m1;
    200195    return box.B - box.A;
Note: See TracChangeset for help on using the changeset viewer.