Borland fixes

This commit is contained in:
Danne 2000-05-16 13:57:54 +00:00
parent b82af01381
commit 01ab5f4fbe
3 changed files with 3 additions and 2 deletions

View file

@ -66,6 +66,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef __BORLANDC__
#define snprintf _snprintf
#define vsnprintf _vsnprintf
#define kbhit _kbhit
#endif
#endif

View file

@ -94,7 +94,7 @@ char *Sys_ConsoleInput (void)
int c;
// read a line out
while (_kbhit())
while (kbhit())
{
c = _getch();
putch (c);

View file

@ -750,7 +750,7 @@ void SV_ClipToLinks ( areanode_t *node, moveclip_t *clip )
|| clip->boxmaxs[2] < touch->v.absmin[2] )
continue;
if (clip->passedict && clip->passedict->v.size[0] && !touch->v.size[0])
if (clip->passedict!=0 && clip->passedict->v.size[0] && !touch->v.size[0])
continue; // points never interact
// might intersect, so do an exact clip