Here's a fix:
1) Edit the makefile and add 'NpcAI.o' to the end of the list of source files (in the SF variable). This is a new file in pre6, so I guess it didn't get added to the compile list.
2) Edit NpcAI.cpp and insert the following lines beginning at line 3:
Code:
#else
// not needed in WIN32? Not included in base download...
#include <stdlib.h>
stdlib.h has to be included for rand(). It's that way on WIN32 also, so I don't know how it would compile on that platform either...
This will at least get it compiling (also do Trumpcard's fix to npc.cpp)... now off to test it
btw, I didn't have to do any changes regarding namespace or stdarg.h, but YMMV.