#3814: eventChat from argument is wrong when human is not at position 0
-------------------------------+-------------------------------------
 Reporter:  NoQ                |             Owner:  per
     Type:  bug                |            Status:  new
 Priority:  normal             |         Milestone:  unspecified
Component:  JavaScript Issues  |           Version:  3.1 and master
 Keywords:                     |        Blocked By:
 Blocking:                     |  Operating System:  All/Non-Specific
-------------------------------+-------------------------------------
 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.

-- 
Ticket URL: <http://developer.wz2100.net/ticket/3814>
Warzone 2100 Trac <http://developer.wz2100.net/>
The Warzone 2100 Project
------------------------------------------------------------------------------
Keep yourself connected to Go Parallel: 
INSIGHTS What's next for parallel hardware, programming and related areas?
Interviews and blogs by thought leaders keep you ahead of the curve.
http://goparallel.sourceforge.net
_______________________________________________
Warzone2100-project mailing list
Warzone2100-project@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/warzone2100-project

Reply via email to