mirror of https://github.com/OpenRCT2/OpenRCT2.git
Merge branch 'pre-release-0.0.2' into develop
This commit is contained in:
commit
13244b8333
|
@ -244,8 +244,7 @@ static bool window_changelog_read_file()
|
||||||
while (*ch != 0) {
|
while (*ch != 0) {
|
||||||
unsigned char c = *ch;
|
unsigned char c = *ch;
|
||||||
if (c == '\n') {
|
if (c == '\n') {
|
||||||
*ch = 0;
|
*ch++ = 0;
|
||||||
ch++;
|
|
||||||
_changelogNumLines++;
|
_changelogNumLines++;
|
||||||
if (_changelogNumLines > changelogLinesCapacity) {
|
if (_changelogNumLines > changelogLinesCapacity) {
|
||||||
changelogLinesCapacity *= 2;
|
changelogLinesCapacity *= 2;
|
||||||
|
@ -254,10 +253,10 @@ static bool window_changelog_read_file()
|
||||||
_changelogLines[_changelogNumLines - 1] = ch;
|
_changelogLines[_changelogNumLines - 1] = ch;
|
||||||
} else if (c < 32 || c > 122) {
|
} else if (c < 32 || c > 122) {
|
||||||
// A character that won't be drawn or change state.
|
// A character that won't be drawn or change state.
|
||||||
*ch = FORMAT_OUTLINE_OFF;
|
*ch++ = FORMAT_OUTLINE_OFF;
|
||||||
|
} else {
|
||||||
|
ch++;
|
||||||
}
|
}
|
||||||
|
|
||||||
ch++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_changelogLines = realloc(_changelogLines, _changelogNumLines * sizeof(char*));
|
_changelogLines = realloc(_changelogLines, _changelogNumLines * sizeof(char*));
|
||||||
|
|
Loading…
Reference in New Issue