Skip to content
This repository has been archived by the owner on Apr 17, 2022. It is now read-only.

eventChat from argument is wrong when human is not at position 0 #3814

Closed
wzdev-ci opened this issue Dec 1, 2012 · 2 comments
Closed

eventChat from argument is wrong when human is not at position 0 #3814

wzdev-ci opened this issue Dec 1, 2012 · 2 comments

Comments

@wzdev-ci
Copy link
Contributor

wzdev-ci commented Dec 1, 2012

resolution_fixed type_bug | by NoQ


Start a skirmish game on rush, move yourself to position 1, and switch all players to an AI described below:

function eventChat(from, to, message) {
	debug(me,from,to,message);
	if (playerData[from].isHuman)
		chat(from,"fdsfgs");
}

Then say something. They will reply to player 1 (at position 0) instead of you. That's how debug log will look:

1 0 1 said something
1 1 1 fdsfgs
2 0 2 said something
1 2 1 fdsfgs
3 0 3 said something
1 3 1 fdsfgs

You see player 1 (controlled by an AI) telling fdsfgs to himself and sending this fact to the debug output when he hears himself.


Issue migrated from trac:3814 at 2022-04-16 10:44:06 -0700

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Dec 1, 2012

Per changed status from new to closed

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Dec 1, 2012

Per changed resolution from `` to fixed

@wzdev-ci wzdev-ci closed this as completed Dec 1, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant