mirror of
https://github.com/dhewm/dhewm3.git
synced 2024-11-23 12:53:09 +00:00
- fixed wierd bracked position
This commit is contained in:
parent
99ca9f0543
commit
5ff3b0b9ee
1 changed files with 9 additions and 12 deletions
|
@ -1154,19 +1154,16 @@ void idGameEdit::MapEntityTranslate( const char *name, const idVec3 &v ) const {
|
|||
|
||||
***********************************************************************/
|
||||
|
||||
bool idGameEdit::IsLineCode(const char* filename, int linenumber) const
|
||||
{
|
||||
static idStr fileStr = idStr(MAX_PATH);
|
||||
idProgram* program = &gameLocal.program;
|
||||
for (int i = 0; i < program->NumStatements(); i++)
|
||||
{
|
||||
fileStr = program->GetFilename(program->GetStatement(i).file);
|
||||
fileStr.BackSlashesToSlashes();
|
||||
bool idGameEdit::IsLineCode( const char *filename, int linenumber ) const {
|
||||
static idStr fileStr = idStr( MAX_PATH );
|
||||
idProgram *program = &gameLocal.program;
|
||||
for ( int i = 0; i < program->NumStatements( ); i++ ) {
|
||||
fileStr = program->GetFilename( program->GetStatement( i ).file );
|
||||
fileStr.BackSlashesToSlashes( );
|
||||
|
||||
if (strcmp(filename, fileStr.c_str()) == 0
|
||||
&& program->GetStatement(i).linenumber == linenumber
|
||||
)
|
||||
{
|
||||
if ( strcmp( filename, fileStr.c_str( ) ) == 0
|
||||
&& program->GetStatement( i ).linenumber == linenumber
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue