1.1 --- a/extensions/sdktools/vdecoder.cpp Sat Jun 16 18:27:23 2007 +0000
1.2 +++ b/extensions/sdktools/vdecoder.cpp Sat Jun 16 18:33:21 2007 +0000
1.3 @@ -145,9 +145,9 @@
1.4 cell_t *addr;
1.5 pContext->LocalToPhysAddr(param, &addr);
1.6
1.7 - addr[0] = v->x;
1.8 - addr[1] = v->y;
1.9 - addr[2] = v->z;
1.10 + addr[0] = sp_ftoc(v->x);
1.11 + addr[1] = sp_ftoc(v->y);
1.12 + addr[2] = sp_ftoc(v->z);
1.13
1.14 return Data_Okay;
1.15 }
1.16 @@ -165,9 +165,9 @@
1.17 cell_t *addr;
1.18 pContext->LocalToPhysAddr(param, &addr);
1.19
1.20 - addr[0] = q->x;
1.21 - addr[1] = q->y;
1.22 - addr[2] = q->z;
1.23 + addr[0] = sp_ftoc(q->x);
1.24 + addr[1] = sp_ftoc(q->y);
1.25 + addr[2] = sp_ftoc(q->z);
1.26
1.27 return Data_Okay;
1.28 }
1.29 @@ -380,7 +380,7 @@
1.30 pContext->ThrowNativeError("Entity index %d is not a valid client", param);
1.31 return Data_Fail;
1.32 }
1.33 - CBaseEntity *pEntity;
1.34 + CBaseEntity *pEntity = NULL;
1.35 if (pEdict)
1.36 {
1.37 IServerUnknown *pUnknown = pEdict->GetUnknown();
1.38 @@ -395,8 +395,6 @@
1.39 pContext->ThrowNativeError("Entity %d is not a CBaseEntity");
1.40 return Data_Fail;
1.41 }
1.42 - } else {
1.43 - pEdict = NULL;
1.44 }
1.45
1.46 CBaseEntity **ebuf = (CBaseEntity **)buffer;
1.47 @@ -450,7 +448,7 @@
1.48 return Data_Fail;
1.49 }
1.50 }
1.51 - CBaseEntity *pEntity;
1.52 + CBaseEntity *pEntity = NULL;
1.53 if (pEdict)
1.54 {
1.55 IServerUnknown *pUnknown = pEdict->GetUnknown();
1.56 @@ -465,8 +463,6 @@
1.57 pContext->ThrowNativeError("Entity %d is not a CBaseEntity");
1.58 return Data_Fail;
1.59 }
1.60 - } else {
1.61 - pEdict = NULL;
1.62 }
1.63
1.64 CBaseEntity **ebuf = (CBaseEntity **)buffer;