Added PlayerManager basic hookings

Moved ftoc and ctof to an utility file
Added some more string natives

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40231
This commit is contained in:
Borja Ferrer
2006-12-28 00:48:09 +00:00
parent aba273f93d
commit 5e75d0928c
9 changed files with 211 additions and 10 deletions
+15
View File
@@ -0,0 +1,15 @@
#ifndef _INCLUDE_SOURCEPAWN_VM_TYPEUTIL_H_
#define _INCLUDE_SOURCEPAWN_VM_TYPEUTIL_H_
#include "sp_vm_types.h"
inline cell_t ftoc(float val)
{
return *(cell_t *)&val;
}
inline float ctof(cell_t val)
{
return *(float *)&val;
}
#endif //_INCLUDE_SOURCEPAWN_VM_TYPEUTIL_H_