
#include <windows.h>
#include <stdlib.h>
#include <stdio.h>
#include <dos.h>
#include <mem.h>
#include <io.h>
#include <fcntl.h>
#include <time.h>
#include <string.h>
#include <sys\stat.h>

//typedef unsigned short USHORT;

#include "ack3d.h"
#include "ackeng.h"


void AckBuildCeilingFloor (UCHAR *, short, short, short, short, short, short);

//ħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħ
// Generates a solid floor and ceiling
//ħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħħ
short AckBuildBackground (ACKENG * ae)
{

/* Let the assembly routine do all the hard work */

#if FLOOR_ACTIVE
#else
  AckBuildCeilingFloor (ae->BkgdBuffer,
			ae->LightFlag,
			ae->TopColor,
			ae->BottomColor,
			ae->WinStartY,
			ae->WinEndY,
			ae->CenterRow);
#endif

  return (0);
}
