From c7fbca3680e7646e517ba73ee0db270f32a69983 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Tue, 28 Nov 2006 18:33:00 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@747 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/rendertext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/rendertext.cpp b/source/src/rendertext.cpp index 51a20d64..307b5f91 100644 --- a/source/src/rendertext.cpp +++ b/source/src/rendertext.cpp @@ -198,7 +198,7 @@ void draw_text(const char *str, int left, int top) switch(c) { case '\t': - if(columns) x = left + (*columns)[col++]; + if(columns && collength()) x = left + (*columns)[col++]; else x = (x-left+PIXELTAB)/PIXELTAB*PIXELTAB+left; continue;