Skip to content

Commit

Permalink
M302de: bypass tevent_049()
Browse files Browse the repository at this point in the history
  • Loading branch information
Henrik Kretzschmar committed Mar 22, 2016
1 parent 61f4dc0 commit b99679b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
13 changes: 12 additions & 1 deletion src/custom/schick/rewrite_m302de/seg110.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Rewrite of DSA1 v3.02_de functions of seg110 (travel events 2 / 10)
* Functions rewritten: 33/35
* Functions rewritten: 34/35
*/

#include <stdio.h>
Expand Down Expand Up @@ -829,6 +829,17 @@ void tevent_048(void)
}
}

/* Borlandified and identical */
void tevent_049(void)
{
if ((test_skill(Real2Host(get_first_hero_available_in_group()), 31, 2) > 0 && !ds_readb(0x3dc2)) ||
ds_readb(0x3dc2) != 0)
{
TRV_found_camp_place(0);
ds_writeb(0x3dc2, 1);
}
}

#if !defined(__BORLANDC__)
}
#endif
2 changes: 2 additions & 0 deletions src/custom/schick/rewrite_m302de/seg110.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ void tevent_045(void);
void tevent_046(void);
/* 0x8e */
void tevent_048(void);
/* 0x93 */
void tevent_049(void);

/* 0x9d */
void tevent_011(void);
Expand Down
3 changes: 2 additions & 1 deletion src/custom/schick/schick_m302de.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11251,7 +11251,8 @@ static int seg110(unsigned short offs)
return 1;
}
case 0x93: {
return 0;
tevent_049();
return 1;
}
case 0x98: {
return 0;
Expand Down

0 comments on commit b99679b

Please sign in to comment.