Allow MICRO and WIN32 code paths to diverge

There's still a lot of overlap for 3.4.1, but not
100% any longer and it facilitates some improvements
- Allow error save files on WIN32
This commit is contained in:
nethack.allison
2002-03-30 19:09:56 +00:00
parent c49130e5bd
commit 51f9892b3b
18 changed files with 84 additions and 72 deletions

View File

@@ -19,7 +19,7 @@ STATIC_DCL void NDECL(do_positionbar);
void
moveloop()
{
#ifdef MICRO
#if defined(MICRO) || defined(WIN32)
char ch;
int abort_lev;
#endif
@@ -315,7 +315,7 @@ moveloop()
flags.move = 1;
if(multi >= 0 && occupation) {
#ifdef MICRO
#if defined(MICRO) || defined(WIN32)
abort_lev = 0;
if (kbhit()) {
if ((ch = Getchar()) == ABORT)
@@ -331,14 +331,14 @@ moveloop()
#endif
occupation = 0;
if(
#ifdef MICRO
#if defined(MICRO) || defined(WIN32)
abort_lev ||
#endif
monster_nearby()) {
stop_occupation();
reset_eat();
}
#ifdef MICRO
#if defined(MICRO) || defined(WIN32)
if (!(++occtime % 7))
display_nhwindow(WIN_MAP, FALSE);
#endif