File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -254,6 +254,14 @@ public HCity(HMail mail)
254
254
{
255
255
}
256
256
257
+ public override void CompareMail ( HMail mail )
258
+ {
259
+ // This is a small fix to not count MSG_CityDistressReport messages with no report info.
260
+ if ( ! ( mail . Body . Contains ( "<b>MORALE</b>" ) || mail . Body . Contains ( "<b>POPULATION</b>" ) ) )
261
+ return ;
262
+ base . CompareMail ( mail ) ;
263
+ }
264
+
257
265
public override void Initialize ( )
258
266
{
259
267
if ( _mail . Body . Remove ( 4 ) == "UTC:" )
Original file line number Diff line number Diff line change @@ -34,10 +34,6 @@ static public bool IsUni4(string filePath)
34
34
}
35
35
static public bool IsCityReport ( HMail mail ) // Same as above but mail input.
36
36
{
37
- // This is a small fix to not count MSG_CityDistressReport messages with no report info.
38
- if ( ! ( mail . Body . Contains ( "<b>MORALE</b>" ) || mail . Body . Contains ( "<b>POPULATION</b>" ) ) )
39
- return false ;
40
-
41
37
return IsCityReport ( mail . MessageType ) ;
42
38
}
43
39
static public bool IsCityReport ( byte [ ] mailBytes ) // Same as above but mailBytes input.
You can’t perform that action at this time.
0 commit comments