Changeset 512 for abuse/trunk/src/level.cpp
- Timestamp:
- Apr 20, 2011, 12:39:27 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/src/level.cpp
r497 r512 18 18 #include <limits.h> 19 19 #include <time.h> 20 21 #include "common.h" 20 22 21 23 #include "light.h" … … 1654 1656 wm->font()->put_string(i,80-strlen(buf)*wm->font()->width()/2,100+wm->font()->height(),buf); 1655 1657 1656 fp->write_uint16(i-> width());1657 fp->write_uint16(i-> height());1658 fp->write_uint16(i->Size().x); 1659 fp->write_uint16(i->Size().y); 1658 1660 1659 1661 i->lock(); 1660 for(int y = 0; y < i-> height(); y++)1661 fp->write(i->scan_line(y),i-> width());1662 for(int y = 0; y < i->Size().y; y++) 1663 fp->write(i->scan_line(y),i->Size().x); 1662 1664 i->unlock(); 1663 1665
Note: See TracChangeset
for help on using the changeset viewer.