added language debug

This commit is contained in:
Borja Ferrer
2006-01-24 18:47:08 +00:00
parent 018b4645e8
commit 7c7422a553
3 changed files with 42 additions and 14 deletions

View File

@@ -37,9 +37,8 @@
#define LANG_SERVER 0
#define LANG_PLAYER -1
#define LANG_STATUS_OK 0 // OK
#define LANG_STATUS_KLNOTFOUND 1 // Lang key not found in the lang.txt
#define LANG_STATUS_LNOTFOUND 3 // Invalid lang
#define ERR_BADKEY 1 // Lang key not found
#define ERR_BADLANG 2 // Invalid lang
struct md5Pair
{
@@ -53,6 +52,14 @@ struct sKeyDef
int key;
};
struct lang_err
{
lang_err() : last(0.0f)
{
};
float last;
};
class defentry
{
public: