mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-15 18:56:41 -04:00
a lot of changes and support languages
This commit is contained in:
parent
185a6e5382
commit
f55f92a88b
38 changed files with 1221 additions and 467 deletions
|
@ -248,7 +248,7 @@ static char test_kriterii(void)
|
|||
break;
|
||||
default:
|
||||
{
|
||||
hodn=temp_storage_find(text)>=0;
|
||||
hodn=temp_storage_find(concat2(text,".map"))>=0;
|
||||
/* char c[200];
|
||||
sprintf(c,"%s.TMP",text);
|
||||
hodn=!check_file_exists(c);*/
|
||||
|
@ -356,6 +356,7 @@ static void preskoc_prikaz(void)
|
|||
switch (ODD)
|
||||
{
|
||||
case 0:cti_retezec(1,&text,0,0);ending=1;break;
|
||||
case '\r':continue;
|
||||
case '\n':if (ending && uroven==0) return;break;
|
||||
case EOF: if (uroven!=0)ex_error(OD_OUT);return;break;
|
||||
case '{': if (last==OD_CRIT || last==OD_NEWLINE) uroven++;break;
|
||||
|
@ -422,7 +423,7 @@ static char flp_validate(word sector, void *ctx)
|
|||
int *found_place = (int *)ctx;
|
||||
char c;
|
||||
|
||||
if (found_place) return 0;
|
||||
if (*found_place) return 0;
|
||||
if (mob_map[sector])
|
||||
{
|
||||
m=mobs+mob_map[sector]-1;
|
||||
|
@ -485,7 +486,7 @@ static char load_index_map(int index)
|
|||
if (!GlobEvent(MAGLOB_LEAVEMAP,viewsector,viewdir)) return 0;
|
||||
viewsector=lv;
|
||||
strncpy(x.name,index_tab[index].mapname,12);
|
||||
x.start_pos=lv;
|
||||
x.start_pos=0;
|
||||
x.dir=0;
|
||||
macro_load_another_map(&x);
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue