mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-10-14 07:17:44 +00:00
- cgui: now convert EventName to lowercase in SendEventToAll
- compression: now use "fastest" compression mode and more memory unless in FINAL build. this greatly speeds up archive generation at expense of 1.5% size increase (fine during development). done because profiling shows ZLib accounts for 78% of CPU; practically nothing else shows up, which shows effectiveness of compressing in parallel with reading from disk. - file_cache: documented; fixed several potential issues with exact_buf when invalidating files. This was SVN commit r3586.
This commit is contained in:
+8
-1
@@ -324,8 +324,15 @@ void CGUI::TickObjects()
|
||||
|
||||
void CGUI::SendEventToAll(CStr EventName)
|
||||
{
|
||||
// janwas 2006-03-03: spoke with Ykkrosh about EventName case.
|
||||
// when registering, case is converted to lower - this avoids surprise
|
||||
// if someone were to get the case wrong and then not notice their
|
||||
// handler is never called. however, until now, the other end
|
||||
// (sending events here) wasn't converting to lower case,
|
||||
// leading to a similar problem.
|
||||
// now fixed; case is irrelevant since all are converted to lower.
|
||||
GUI<CStr>::RecurseObject(0, m_BaseObject,
|
||||
&IGUIObject::ScriptEvent, EventName);
|
||||
&IGUIObject::ScriptEvent, EventName.LowerCase());
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user