mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-16 11:16:42 -04:00
added console and a few commands
This commit is contained in:
parent
e717badc45
commit
73b949fb2e
28 changed files with 807 additions and 87 deletions
|
@ -1013,7 +1013,7 @@ static void read_story_task(va_list args)
|
|||
{
|
||||
int xs,ys;
|
||||
d=c;
|
||||
while (size && *d!='\r' && *d!='\n') {d++;size--;};
|
||||
while (size>0 && *d!='\r' && *d!='\n') {d++;size--;};
|
||||
if (!size) break;
|
||||
*d=0;
|
||||
{
|
||||
|
@ -1027,7 +1027,7 @@ static void read_story_task(va_list args)
|
|||
e=strchr(e,0)+1;
|
||||
}
|
||||
c=d+1;size--;
|
||||
if (*c=='\n' || *c=='\r') {c++;size--;};
|
||||
if (size > 0 &&(*c=='\n' || *c=='\r')) {c++;size--;};
|
||||
free(or);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue