There is now a log.c for logging, and I replaced all the fprintf()s with the appropriate functions.
Some major changes to the editor so that the tilesets are no longer global, but rather belong to the map.
Got the engine itself compiling again with the recent editor changes.
Not tested yet.
Fixed dependencies in the editor's makefile
Added logging of errors to the editor.
Fixed a bug with how BMP files are saved under windows. The problem was that windows would insert an 0x0D before any 0x0A in the file, because the file was opened in "w" mode rather than "wb".
The bitmap module now also contains a bm_brightness() API function.
Also fixed some of the bmp documentation.
Added a G (Graphics) object to Lua that will contain all the primitive graphics functions.
(At the moment it only has a setcolor() and pixel(x,y) function)