View Issue Details

IDProjectCategoryView StatusLast Update
0004193The Dark ModAIpublic02.08.2015 13:03
ReporterNagaHuntress Assigned Tograyman  
PrioritynormalSeveritynormalReproducibilityN/A
Status resolvedResolutionfixed 
Product VersionTDM 2.03 
Target VersionTDM 2.04Fixed in VersionTDM 2.04 
Summary0004193: Comparison of an alert type variable to an event type constant
DescriptionWhen looking through the -Wall warning messages with '-Wall', I found the following comparison which appears to be clearly a bug:

game/ai/States/State.cpp:1867:77: warning: comparison between ‘enum ai::EAlertType’ and ‘enum EventType’ [-Wenum-compare]
      if ( soundName.IsEmpty() && !need2Search && ( otherMemory.alertType == E_EventTypeUnconsciousPerson ) )


I believe the correct enum constant is: EAlertTypeUnconsciousPerson
TagsNo tags attached.

Activities

SteveL

SteveL

01.08.2015 16:43

reporter   ~0007684

Good spot! I'll check with grayman what tests we need to run after implementing your fix. He's the expert, AI minds are a mystery to me still.
grayman

grayman

02.08.2015 11:20

viewer   ~0007687

Good catch! Thank you.

Fixed in src rev 6525.

Issue History

Date Modified Username Field Change
31.07.2015 12:52 NagaHuntress New Issue
01.08.2015 16:43 SteveL Note Added: 0007684
01.08.2015 16:43 SteveL Assigned To => SteveL
01.08.2015 16:43 SteveL Status new => acknowledged
02.08.2015 11:20 grayman Note Added: 0007687
02.08.2015 11:20 grayman Status acknowledged => resolved
02.08.2015 11:20 grayman Resolution open => fixed
02.08.2015 11:20 grayman Product Version => TDM 2.03
02.08.2015 11:20 grayman Fixed in Version => TDM 2.04
02.08.2015 11:20 grayman Target Version => TDM 2.04
02.08.2015 13:03 SteveL Assigned To SteveL => grayman
02.08.2015 13:03 SteveL Status resolved => assigned
02.08.2015 13:03 SteveL Status assigned => resolved