View Issue Details

IDProjectCategoryView StatusLast Update
0000362Spring engineAIpublic2010-11-23 01:42
ReporterKloot Assigned Totvo  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Summary0000362: patch for rts/ExternalAI/GlobalAI.cpp
DescriptionAs described in http://taspring.clan-sy.com/phpbb/viewtopic.php?t=8746, AI destructors aren't always called because the value of IsCInterface isn't explicitly set to false in CGlobalAI::CGlobalAI() if _IsCInterface == 0. This patch corrects this, and also adds a check for the return value of an AI's exported IsCInterface function so that it's only considered to present a C interface if the function exists *and* returns 1.
TagsNo tags attached.
Attached Files
GlobalAI.patch (Attachment missing)
Checked infolog.txt for Errors

Activities

tvo

2007-01-04 20:33

reporter   ~0000524

committed.

Next time, could you not add spaces around the "->" operator, and put the function opening brace on a separate line, ie. like this:

void CGlobalAI::Update(void)
{
    gh->Update();
    ai->Update();
}

Not this:

void CGlobalAI::Update(void) {
    gh -> Update();
    ai -> Update();
}

Also it would be great if you could keep (major) whitespace cleanup separated from actual code changes, mixing them both makes it very hard to properly review a patch.

Thanks

Issue History

Date Modified Username Field Change
2007-01-04 14:46 Kloot New Issue
2007-01-04 14:46 Kloot File Added: GlobalAI.patch
2007-01-04 20:33 tvo Status new => resolved
2007-01-04 20:33 tvo Resolution open => fixed
2007-01-04 20:33 tvo Assigned To => tvo
2007-01-04 20:33 tvo Note Added: 0000524
2010-11-22 22:59 abma Project AI => Spring engine
2010-11-22 23:11 abma Project Spring engine => AI
2010-11-23 01:42 abma Project AI => Spring engine