Sunday, January 27, 2008

libtcod 1.1 for linux

The 1.1 version of the Doryen library is ready for linux. You can download it on the library homepage.
There was indeed a problem in the source code that kept the fov toolkit from working on linux. But it has no impact on the win32 versions. The next time, I'll compile it under linux before releasing it... The incriminated code :


int in_fov:1;
in_fov=1;
bool b= in_fov;
if (b) printf("cell in fov\n");


On win32 platforms, this code print "cell in fov". On linux, it does not. To make it work on linux, you have to replace :


int in_fov:1;


by


unsigned int in_fov:1;