Added the ability to play sounds (from the Lua state).
Some documentation fixes.
The -g option when running the engine now specifies a directory containing a game.ini file, rather than an alternative game INI file.
This is intended help you manage the resources used in your games more efficiently.
Some minor fixes to my recent -g option changes.
Minor fix to bm_color_atoi() for dealing with colors like 'a6664c'
The Pakr utility now has the ability to create a PAK file from a directory tree through its new '-d dir' option.
Fixed a variety of bugs and annoyances in the editor.
The editor now prompts you to save before quitting, and Esc no longer quits the application.
The editor now stores the relative path to the working directory in the map file.
When the map file is loaded, this relative path is used to chdir() to the correct working directory, so that resources like tilesets can be located correctly.

Some minor fixes to error messages and documentation changes as well.
Fixed the line number in error reports.
It now accepts more characters in unquoted values.
The -x option in Pakr now restores the original directory structure.
Fixed a bug which caused binary files to get corrupted when extracted.
Changed the command line parameters for Pakr:
 -c now creates a PAK file from a directory, like -d used to do.
 -a now creates a PAK file if it doesn't exist (so it can be used like the old -c)
 -d now dumps the contents of a file (like -u used to do).
Created a new module called paths.c for path and directory related functions.
Fixed a bug where files still got saved to the wrong directory in the editor.
The maps can now be read from PAK files.
(The problem was that the code in map.c used bm_load() directly, rather than re_get_bmp(), so the tileset couldn't be read from the PAK files)
The editor had to get its own resources.c file that contains a simplified re_get_bmp() function.
The engine now also doesn't crash anymore if a tileset couldn't be read - it logs an error, then quits gently.