summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilereg.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2010-03-30 12:01:50 +0200
committerAdam Borowski <kilobyte@angband.pl>2010-03-30 12:01:50 +0200
commit0b96abeddb4783ba01ddab45701aa760c187870c (patch)
tree027faf34e0c867f9c41fbb2c72e02addc73ce75a /crawl-ref/source/tilereg.cc
parent8b243758b1efae24a33a128b21259ff0588be6df (diff)
downloadcrawl-ref-0b96abeddb4783ba01ddab45701aa760c187870c.tar.gz
crawl-ref-0b96abeddb4783ba01ddab45701aa760c187870c.zip
Replace some (but not all) uses of libc's assert() by our ASSERT().
Diffstat (limited to 'crawl-ref/source/tilereg.cc')
-rw-r--r--crawl-ref/source/tilereg.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/tilereg.cc b/crawl-ref/source/tilereg.cc
index e9d6e692ca..7184cda381 100644
--- a/crawl-ref/source/tilereg.cc
+++ b/crawl-ref/source/tilereg.cc
@@ -2512,7 +2512,7 @@ bool GridRegion::place_cursor(MouseEvent &event, unsigned int &item_idx)
void GridRegion::add_quad_char(char c, int x, int y, int ofs_x, int ofs_y)
{
int num = c - '0';
- assert(num >= 0 && num <= 9);
+ ASSERT(num >= 0 && num <= 9);
int idx = TILE_NUM0 + num;
m_buf_main.add(idx, x, y, ofs_x, ofs_y, false);
@@ -3752,8 +3752,8 @@ void TabbedRegion::set_tab_region(int idx, GridRegion *reg, int tile_tab)
for (int i = 1; i < TAB_OFS_MAX; ++i)
{
const tile_info &inf_other = tile_gui_info(tile_tab + i);
- assert(inf_other.height == inf.height);
- assert(inf_other.width == inf.width);
+ ASSERT(inf_other.height == inf.height);
+ ASSERT(inf_other.width == inf.width);
}
ASSERT((int)m_tabs.size() > idx);