comparison mm7_2.cpp @ 703:a9c1fb7483c2

monster parser almost complete.
author Gloval
date Tue, 19 Mar 2013 01:33:35 +0400
parents d5b16a44d9b3
children d6236f6a9882 f39d5902c85a
comparison
equal deleted inserted replaced
701:d5b16a44d9b3 703:a9c1fb7483c2
4762 if ( fgets(&Buf, 490, v3) ) 4762 if ( fgets(&Buf, 490, v3) )
4763 { 4763 {
4764 do 4764 do
4765 { 4765 {
4766 *strchr(&Buf, 10) = 0; 4766 *strchr(&Buf, 10) = 0;
4767 memcpy(&v21, texture_frame_table_txt_parser(&Buf, &v20), 0x7Cu); 4767 memcpy(&v21, txt_file_frametable_parser(&Buf, &v20), 0x7Cu);
4768 if ( v21 && *Str1 != 47 ) 4768 if ( v21 && *Str1 != 47 )
4769 { 4769 {
4770 if ( v21 < 2 ) 4770 if ( v21 < 2 )
4771 Abortf("CTextureFrameTable::load, too few arguments, %s line %i.", Args, v25); 4771 Abortf("CTextureFrameTable::load, too few arguments, %s line %i.", Args, v25);
4772 ++v24; 4772 ++v24;
4786 v2->uNumTextures = 0; 4786 v2->uNumTextures = 0;
4787 fseek(v7, 0, 0); 4787 fseek(v7, 0, 0);
4788 for ( i = fgets(&Buf, 490, File); i; i = fgets(&Buf, 490, File) ) 4788 for ( i = fgets(&Buf, 490, File); i; i = fgets(&Buf, 490, File) )
4789 { 4789 {
4790 *strchr(&Buf, 10) = 0; 4790 *strchr(&Buf, 10) = 0;
4791 memcpy(&v21, texture_frame_table_txt_parser(&Buf, &v20), 0x7Cu); 4791 memcpy(&v21, txt_file_frametable_parser(&Buf, &v20), 0x7Cu);
4792 if ( v21 && *Str1 != 47 ) 4792 if ( v21 && *Str1 != 47 )
4793 { 4793 {
4794 strcpy(v2->pTextures[v2->uNumTextures].pTextureName, Str1); 4794 strcpy(v2->pTextures[v2->uNumTextures].pTextureName, Str1);
4795 v2->pTextures[v2->uNumTextures].uAnimTime = atoi(Str); 4795 v2->pTextures[v2->uNumTextures].uAnimTime = atoi(Str);
4796 v9 = 2; 4796 v9 = 2;