#include "quakedef.h"
-int skytexturenum;
+extern int skytexturenum;
int lightmap_textures;
float dist, f;
vec3_t impact, local;
// use 64bit integer... shame it's not very standardized...
-#if _MSC_VER
+#if _MSC_VER || __BORLANDC__
__int64 k; // MSVC
#else
long long k; // GCC
int clearconsole;
int clearnotify;
-int sb_lines;
+extern int sb_lines;
-viddef_t vid; // global video state
+extern viddef_t vid; // global video state
vrect_t scr_vrect;
{
int addrlen = sizeof (struct qsockaddr);
int ret;
+ int errno;
ret = precvfrom (socket, buf, len, 0, (struct sockaddr *)addr, &addrlen);
if (ret == -1)
{
- int errno = pWSAGetLastError();
+ errno = pWSAGetLastError();
if (errno == WSAEWOULDBLOCK || errno == WSAECONNREFUSED)
return 0;
int addrlen = sizeof (struct qsockaddr);
int socket = ipxsocket[handle];
int ret;
+ int errno;
ret = precvfrom (socket, packetBuffer, len+4, 0, (struct sockaddr *)addr, &addrlen);
if (ret == -1)
{
- int errno = pWSAGetLastError();
+ errno = pWSAGetLastError();
if (errno == WSAEWOULDBLOCK || errno == WSAECONNREFUSED)
return 0;
int WIPX_GetSocketAddr (int handle, struct qsockaddr *addr)
{
+ int errno;
int socket = ipxsocket[handle];
int addrlen = sizeof(struct qsockaddr);
memset(addr, 0, sizeof(struct qsockaddr));
if(pgetsockname(socket, (struct sockaddr *)addr, &addrlen) != 0)
{
- int errno = pWSAGetLastError();
+ errno = pWSAGetLastError();
}
return 0;
HINSTANCE hInstDS;
-qboolean SNDDMA_InitDirect (void);
qboolean SNDDMA_InitWav (void);
-
+sndinitstat SNDDMA_InitDirect (void);
/*
==================
==================
*/
-int SNDDMA_Init(void)
+qboolean SNDDMA_Init(void)
{
sndinitstat stat;
eval_t *val;
val = GETEDICTFIELDVALUE(ent, eval_gravity);
- if (val && val->_float)
+ if (val!=0 && val->_float)
ent_gravity = val->_float;
else
ent_gravity = 1.0;
|| 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