diff --git a/object.cpp b/object.cpp index 79bea00fbb6..23ba1fc87b5 100644 --- a/object.cpp +++ b/object.cpp @@ -17,6 +17,9 @@ * * Change Log: * $Log$ + * Revision 1.4 2001/10/16 12:20:18 strigeus + * made files compile on unix + * * Revision 1.3 2001/10/16 10:01:47 strigeus * preliminary DOTT support * @@ -401,10 +404,10 @@ void Scumm::loadRoomObjects() { _objs[i].obj_nr = READ_LE_UINT16(&cdhd->obj_id); #if defined(DOTT) - _objs[i].numstrips = cdhd->w>>3; - _objs[i].height = cdhd->h>>3; - _objs[i].x_pos = cdhd->x>>3; - _objs[i].y_pos = cdhd->y>>3; + _objs[i].numstrips = READ_LE_UINT16(&cdhd->w)>>3; + _objs[i].height = READ_LE_UINT16(&cdhd->h)>>3; + _objs[i].x_pos = ((int16)READ_LE_UINT16(&cdhd->x))>>3; + _objs[i].y_pos = ((int16)READ_LE_UINT16(&cdhd->y))>>3; #else _objs[i].numstrips = cdhd->w; _objs[i].height = cdhd->h; @@ -758,4 +761,4 @@ int Scumm::getDistanceBetween(bool is_obj_1, int b, int c, bool is_obj_2, int e, return getDist(x,y,x2,y2) * 0xFF / ((i + j)>>1); } -#endif \ No newline at end of file +#endif diff --git a/resource.cpp b/resource.cpp index bff925159aa..f0efc07ee7e 100644 --- a/resource.cpp +++ b/resource.cpp @@ -17,6 +17,9 @@ * * Change Log: * $Log$ + * Revision 1.4 2001/10/16 12:20:20 strigeus + * made files compile on unix + * * Revision 1.3 2001/10/16 10:01:47 strigeus * preliminary DOTT support * @@ -266,7 +269,7 @@ void Scumm::readIndexFile(int mode) { void Scumm::readIndexFile() { uint32 blocktype,itemsize; int numblock = 0; - int num; + int num, i; debug(9, "readIndexFile()"); diff --git a/scummvm.cpp b/scummvm.cpp index b6b3696d396..68ff70eff1d 100644 --- a/scummvm.cpp +++ b/scummvm.cpp @@ -17,6 +17,9 @@ * * Change Log: * $Log$ + * Revision 1.8 2001/10/16 12:20:22 strigeus + * made files compile on unix + * * Revision 1.7 2001/10/16 10:01:48 strigeus * preliminary DOTT support * @@ -957,8 +960,10 @@ void CDECL debug(int level, const char *s, ...) { } void checkHeap() { +#if defined(WIN32) if (_heapchk() != _HEAPOK) { error("Heap is invalid!"); } +#endif }