View Issue Details

IDProjectCategoryView StatusLast Update
0002464The Dark ModCodingpublic03.06.2011 03:58
ReporterSpringheel Assigned Tograyman  
PrioritynormalSeveritynormalReproducibilityalways
Status closedResolutionfixed 
Target VersionTDM 1.04Fixed in VersionTDM 1.04 
Summary0002464: Sleeping AI respond to greetings
DescriptionI've seen this twice now in test/sleep.map. One of the standing AI will say a greeing and the sleeping guard responds.

TagsNo tags attached.

Activities

Springheel

Springheel

08.12.2010 01:55

administrator   ~0003376

Noticed this again...the AI actually opens his eyes and turns his head towards the person he's talking to. Kind of amusing.

Grayman notes: A quick peek at the code says the only criteria for a possible greeting (and response) is that the AI are within 230 units of each other, and each can see the other's eyes.

There's no check that I can see for one being asleep.
grayman

grayman

08.12.2010 03:11

viewer   ~0003377

The fix is a trivial check to see if the AI being greeted is sleeping.

Note that if an AI is in the act of lying down, there's a short moment when he's prone and not sleeping when a greeting can slip in. Shortly after, he's asleep. I think this is okay, like he's saying g'nite to someone.
grayman

grayman

08.12.2010 12:55

viewer   ~0003378

This fix is coded, but I'll hold it for 1.04.
grayman

grayman

26.12.2010 00:58

viewer   ~0003405

Added a check to not issue a greeting if the AI being greeted is asleep.

rev 4384:

State.cpp

Issue History

Date Modified Username Field Change
07.12.2010 20:00 Springheel New Issue
08.12.2010 01:55 Springheel Note Added: 0003376
08.12.2010 03:11 grayman Note Added: 0003377
08.12.2010 03:11 grayman Assigned To => grayman
08.12.2010 03:11 grayman Reproducibility have not tried => always
08.12.2010 03:11 grayman Status new => confirmed
08.12.2010 12:55 grayman Note Added: 0003378
23.12.2010 15:54 grayman Fixed in Version => TDM 1.04
23.12.2010 15:54 grayman Target Version => TDM 1.04
26.12.2010 00:58 grayman Note Added: 0003405
26.12.2010 00:58 grayman Status confirmed => resolved
26.12.2010 00:58 grayman Resolution open => fixed
03.06.2011 03:58 greebo Status resolved => closed