-/*\r
-Copyright (C) 1999-2007 id Software, Inc. and contributors.\r
-For a list of contributors, see the accompanying CONTRIBUTORS file.\r
-\r
-This file is part of GtkRadiant.\r
-\r
-GtkRadiant is free software; you can redistribute it and/or modify\r
-it under the terms of the GNU General Public License as published by\r
-the Free Software Foundation; either version 2 of the License, or\r
-(at your option) any later version.\r
-\r
-GtkRadiant is distributed in the hope that it will be useful,\r
-but WITHOUT ANY WARRANTY; without even the implied warranty of\r
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
-GNU General Public License for more details.\r
-\r
-You should have received a copy of the GNU General Public License\r
-along with GtkRadiant; if not, write to the Free Software\r
-Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\r
-*/\r
-\r
-#include <string.h>\r
-#include "reference.h"\r
-#include "arrayedlist.h"\r
-#include "resourcemanager.h"\r
-#include "skeletons.h"\r
-\r
-char *referenceRootNames[] =\r
-{\r
- "elf_Lhandroot",//0\r
- "elf_Rhandroot",\r
- "elf_Rfootroot",\r
- "elf_Lfootroot",\r
- "elf_Bstaffroot",\r
- "elf_bladeroot",\r
- "elf_hellroot",\r
- "StaffBone",//7\r
- "SwordBone",\r
- "SpearBone",\r
- "RFootBone",\r
- "LFootBone",\r
- "hp_backroot",//12\r
- "hp_staffroot",\r
- "hp_lhandroot",\r
- "hp_rhandroot",\r
- "hp_rfootroot",\r
- "hp_lfootroot",\r
- "staffroot",//18\r
- "rfootroot",\r
- "lfootroot",\r
- "rhandroot",\r
- "lhandroot",\r
- "leyeroot",\r
- "reyeroot"\r
-};\r
-\r
-int referenceRootNameOffsets[NUM_REFERENCED] =\r
-{\r
- 0, // CORVUS\r
- 7, // INSECT\r
- 12, // HIGH PRIESTESS\r
- 18, // MORCALAVIN\r
-};\r
-\r
-int numReferences[NUM_REFERENCED] = \r
-{\r
- NUM_REFERENCES_CORVUS,\r
- NUM_REFERENCES_INSECT,\r
- NUM_REFERENCES_PRIESTESS,\r
- NUM_REFERENCES_MORK,\r
-};\r
-\r
-int corvusJointIDs[NUM_REFERENCES_CORVUS] =\r
-{\r
- CORVUS_UPPERBACK,\r
- CORVUS_UPPERBACK,\r
- -1,\r
- -1,\r
- CORVUS_UPPERBACK,\r
- CORVUS_UPPERBACK,\r
- CORVUS_UPPERBACK,\r
-};\r
-\r
-int *jointIDs[NUM_REFERENCED] =\r
-{\r
- corvusJointIDs,\r
-};\r
-\r
-static ResourceManager_t ReferenceMngr;\r
-\r
-void InitReferenceMngr()\r
-{\r
-#define REFERENCE_BLOCK_SIZE 8\r
- char *dummystr = NULL;\r
- \r
- ResMngr_Con(&ReferenceMngr, sizeof(LERPedReferences_t), REFERENCE_BLOCK_SIZE, dummystr);\r
-}\r
-\r
-void ReleaseReferenceMngr()\r
-{\r
- ResMngr_Des(&ReferenceMngr);\r
-}\r
-\r
-LERPedReferences_t *LERPedReferences_new(int init_refType)\r
-{\r
- LERPedReferences_t *newRefs;\r
-\r
- newRefs = ResMngr_AllocateResource(&ReferenceMngr, sizeof(*newRefs));\r
- newRefs->refType = init_refType;\r
- newRefs->jointIDs = jointIDs[init_refType];\r
- newRefs->lastUpdate = -(REF_MINCULLTIME*2.0);\r
-\r
- memset(newRefs->references, 0, MAX_REFPOINTS*sizeof(Reference_t));\r
- memset(newRefs->oldReferences, 0, MAX_REFPOINTS*sizeof(Reference_t));\r
-\r
- return newRefs;\r
-}\r
-\r
-void LERPedReferences_delete(LERPedReferences_t *toDelete)\r
-{\r
- ResMngr_DeallocateResource(&ReferenceMngr, toDelete, sizeof(*toDelete));\r
-}\r
-\r
-// end\r
+/*
+Copyright (C) 1999-2007 id Software, Inc. and contributors.
+For a list of contributors, see the accompanying CONTRIBUTORS file.
+
+This file is part of GtkRadiant.
+
+GtkRadiant is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
+
+GtkRadiant is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GtkRadiant; if not, write to the Free Software
+Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+*/
+
+#include <string.h>
+#include "reference.h"
+#include "arrayedlist.h"
+#include "resourcemanager.h"
+#include "skeletons.h"
+
+char *referenceRootNames[] =
+{
+ "elf_Lhandroot",//0
+ "elf_Rhandroot",
+ "elf_Rfootroot",
+ "elf_Lfootroot",
+ "elf_Bstaffroot",
+ "elf_bladeroot",
+ "elf_hellroot",
+ "StaffBone",//7
+ "SwordBone",
+ "SpearBone",
+ "RFootBone",
+ "LFootBone",
+ "hp_backroot",//12
+ "hp_staffroot",
+ "hp_lhandroot",
+ "hp_rhandroot",
+ "hp_rfootroot",
+ "hp_lfootroot",
+ "staffroot",//18
+ "rfootroot",
+ "lfootroot",
+ "rhandroot",
+ "lhandroot",
+ "leyeroot",
+ "reyeroot"
+};
+
+int referenceRootNameOffsets[NUM_REFERENCED] =
+{
+ 0, // CORVUS
+ 7, // INSECT
+ 12, // HIGH PRIESTESS
+ 18, // MORCALAVIN
+};
+
+int numReferences[NUM_REFERENCED] =
+{
+ NUM_REFERENCES_CORVUS,
+ NUM_REFERENCES_INSECT,
+ NUM_REFERENCES_PRIESTESS,
+ NUM_REFERENCES_MORK,
+};
+
+int corvusJointIDs[NUM_REFERENCES_CORVUS] =
+{
+ CORVUS_UPPERBACK,
+ CORVUS_UPPERBACK,
+ -1,
+ -1,
+ CORVUS_UPPERBACK,
+ CORVUS_UPPERBACK,
+ CORVUS_UPPERBACK,
+};
+
+int *jointIDs[NUM_REFERENCED] =
+{
+ corvusJointIDs,
+};
+
+static ResourceManager_t ReferenceMngr;
+
+void InitReferenceMngr()
+{
+#define REFERENCE_BLOCK_SIZE 8
+ char *dummystr = NULL;
+
+ ResMngr_Con(&ReferenceMngr, sizeof(LERPedReferences_t), REFERENCE_BLOCK_SIZE, dummystr);
+}
+
+void ReleaseReferenceMngr()
+{
+ ResMngr_Des(&ReferenceMngr);
+}
+
+LERPedReferences_t *LERPedReferences_new(int init_refType)
+{
+ LERPedReferences_t *newRefs;
+
+ newRefs = ResMngr_AllocateResource(&ReferenceMngr, sizeof(*newRefs));
+ newRefs->refType = init_refType;
+ newRefs->jointIDs = jointIDs[init_refType];
+ newRefs->lastUpdate = -(REF_MINCULLTIME*2.0);
+
+ memset(newRefs->references, 0, MAX_REFPOINTS*sizeof(Reference_t));
+ memset(newRefs->oldReferences, 0, MAX_REFPOINTS*sizeof(Reference_t));
+
+ return newRefs;
+}
+
+void LERPedReferences_delete(LERPedReferences_t *toDelete)
+{
+ ResMngr_DeallocateResource(&ReferenceMngr, toDelete, sizeof(*toDelete));
+}
+
+// end