From f82454d83ae99c249e46110f5d5642bfebd4f68b Mon Sep 17 00:00:00 2001 From: jagt Date: Sat, 14 Sep 2013 13:44:43 +0800 Subject: [PATCH] intergrate master --- src/README.md | 12 +++++++++++- src/brogue/IO.c | 1 + 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/README.md b/src/README.md index 7ff6f3c..6881afe 100644 --- a/src/README.md +++ b/src/README.md @@ -12,8 +12,18 @@ Brogue 可能是近些年 Roguelike 新作中最受欢迎的一个。这里是 基本汉化完毕,应该可以正常通关。中断和录像功能基本正常。 +## 编译 + +由于 Brogue 本身使用了很多 C99 的功能,Windows 下几乎没有办法用 VS 编译。目前仅支持在 Windows 下使用 MinGW。(推荐 [TDM-GCC](http://tdm-gcc.tdragon.net/)) +checkout build 分支,确定 make, gcc, windres 在你的 Path 上。 + + make -f Makefile.windows + +Release 版本 + + make -f Makefile.windows RELEASE=TRUE + ## TODO -* working makefiles * mac builds * update with 1.7.3 \ No newline at end of file diff --git a/src/brogue/IO.c b/src/brogue/IO.c index 3e21079..fa61fcd 100644 --- a/src/brogue/IO.c +++ b/src/brogue/IO.c @@ -3012,6 +3012,7 @@ short wrapText(char *to, const char *sourceText, short width) { // ! Since now we have long unicode lines, replacing spaces is not fesible // ! so don't break on spaces now. just hard break anything longer than the width + i = 0; w = currentLineLength = 0; while (i < textLength) { if (sourceText[i] == COLOR_ESCAPE) {