2025-07-18 05:19 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0000398AIAIpublic2007-01-23 07:04
ReporterKloot 
Assigned Totrepan 
PrioritynormalSeveritytweakReproducibilityN/A
StatusresolvedResolutionfixed 
Summary0000398: [patch] small AI callback addition
DescriptionThis patch lets AI's read the unit limit via CAICallback::GetValue(), as was requested in http://spring.clan-sy.com/phpbb/viewtopic.php?t=8990 .
TagsNo tags attached.
Attached Files
  • patch file icon ExternalAI.patch (774 bytes) 2007-01-22 22:05 -
    Index: AICallback.cpp
    ===================================================================
    --- AICallback.cpp	(revision 3284)
    +++ AICallback.cpp	(working copy)
    @@ -1013,6 +1013,10 @@
     			strcpy((char*) data, f.c_str());
     			return true;
     		}
    +		case AIVAL_UNIT_LIMIT: {
    +			*(int*) data = uh->maxUnits;
    +			return true;
    +		}
     		default:
     			return false;
     	}
    Index: IAICallback.h
    ===================================================================
    --- IAICallback.h	(revision 3284)
    +++ IAICallback.h	(working copy)
    @@ -31,6 +31,7 @@
     #define AIVAL_SCRIPT_FILENAME_CSTR 14       // data points to char buffer of sufficient size
     #define AIVAL_LOCATE_FILE_R 15 // char*
     #define AIVAL_LOCATE_FILE_W 16 // char*
    +#define AIVAL_UNIT_LIMIT 17 // int
     
     struct UnitResourceInfo
     {
    
    patch file icon ExternalAI.patch (774 bytes) 2007-01-22 22:05 +

-Relationships
+Relationships

-Notes

~0000594

trepan (reporter)

Applied to SVN (r3290)
+Notes

-Issue History
Date Modified Username Field Change
2007-01-22 22:05 Kloot New Issue
2007-01-22 22:05 Kloot File Added: ExternalAI.patch
2007-01-23 07:02 trepan Assigned To => trepan
2007-01-23 07:02 trepan Status new => closed
2007-01-23 07:02 trepan Resolution open => fixed
2007-01-23 07:03 trepan Status closed => feedback
2007-01-23 07:03 trepan Resolution fixed => reopened
2007-01-23 07:03 trepan Note Added: 0000594
2007-01-23 07:03 trepan Status feedback => closed
2007-01-23 07:03 trepan Resolution reopened => fixed
2007-01-23 07:04 trepan Status closed => feedback
2007-01-23 07:04 trepan Resolution fixed => reopened
2007-01-23 07:04 trepan Status feedback => resolved
2007-01-23 07:04 trepan Resolution reopened => fixed
+Issue History