Update of /cvsroot/netrek/client/netrekxp/include In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv9974/include Modified Files: defs.h proto.h Log Message: Change from Multithreaded to Multithreaded DLL runtime library, involved adding a few headers, and commenting out the perror() and getpid() function definitions as they seem to be built in now. Also removed libcmt.lib from import libs. Removed unused UPDATE define. Changed WARNTIME and MESSTIME to use tenths of seconds rather than updates/sec, so warning messages don't disappear too fast at higher FPS rates. Moved j->p_explode out of draw if check, so that explosion counter updates even at low update rates. Reworked logic for phaser, torp and plasma fuses. Sets a minimum fuse and updatefuse length so even at low update rates, these weapons draw on screen. Also changed sound logic so that sound events play proper at all update rates. Also fixes a bug where frame could fall outside range of bitmaps, causing errors. Frame is now reset within the bounds of the bitmap definition number of frames. Showed up as a problem at low updates/sec rates. Index: defs.h =================================================================== RCS file: /cvsroot/netrek/client/netrekxp/include/defs.h,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- defs.h 21 Feb 2007 11:43:38 -0000 1.11 +++ defs.h 26 Feb 2007 06:54:48 -0000 1.12 @@ -71,8 +71,6 @@ * person can go into orbit */ #define PFIREDIST 1500 /* At this range a planet * will shoot at a player */ -#define UPDATE 100000 /* Update time is 100000 - * micro-seconds */ /* 6 minutes is maximum for autoquit -- anything more causes problems in the * server. (?) */ @@ -132,9 +130,9 @@ /* * These are random configuration variables */ #define VICTORY 3 /* Number of systems needed * to conquer the galaxy */ -#define WARNTIME 30 /* Number of updates to have +#define WARNTIME 30 /* Number of 1/10th seconds to have * a warning on the screen */ -#define MESSTIME 30 /* Number of updates to have +#define MESSTIME 30 /* Number of 1/10th seconds to have * a message on the screen */ /* These are server defined times */ Index: proto.h =================================================================== RCS file: /cvsroot/netrek/client/netrekxp/include/proto.h,v retrieving revision 1.31 retrieving revision 1.32 diff -u -d -r1.31 -r1.32 --- proto.h 23 Feb 2007 13:43:55 -0000 1.31 +++ proto.h 26 Feb 2007 06:54:48 -0000 1.32 @@ -1250,11 +1250,11 @@ int main (int argc, char *argv[]); void WinMainCleanup (void); -int getpid (); +//int getpid (); struct passwd *getpwuid (); void sleep (int seconds); double rint (double r); -void perror (const char *str); +//void perror (const char *str); #ifdef NEW_SELECT int PASCAL select (int nfds, fd_set * readfds,