sskytw / tenhouviewer

Automatically exported from code.google.com/p/tenhouviewer
0 stars 0 forks source link

Wrong Ura-Dora #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

see attached file 

or go to

1. http://tenhou.net/0/?log=2015021001gm-0089-0000-x17b9f7e12116&tw=3
2. 南1親 2本場 ロン 5200
3. 裏どら=3souzu but on paifu 7 man is shown

r186

Original issue reported on code.google.com by krishmar...@gmail.com on 12 Feb 2015 at 5:02

GoogleCodeExporter commented 8 years ago

Original comment by krishmar...@gmail.com on 12 Feb 2015 at 5:04

Attachments:

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Error found in Round.cs

SOLUTION:

        public List<int> GetUraDoraPointerList()
        {
            List<int> DoraList = new List<int>();
            // Tiles in wall:
            // 4,6,8,10 - ura pointer

            for (int i = 0; i < DoraCount; i++)
            {
                int DoraPointer = Wall.Tiles[4 + i * 2];
                int DoraType = new Tile(DoraPointer).TileId + 1;

                 DoraList.Add(DoraPointer);
            }

            return DoraList;
        }

Original comment by krishmar...@gmail.com on 12 Feb 2015 at 5:30

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks! Fixed!

Original comment by yateplof...@yandex.ru on 18 Feb 2015 at 11:49