All pastes #825194 Raw Edit

Something

public text v1 · immutable
#825194 ·published 2007-12-20 11:58 UTC
rendered paste body
                UInt16[,] roomCollisionGraph = GetRoomCollisionGraph(level, room1);

                int posX = ((int)room1Coll.dwPosGameX - (level.dwPosX * 5));
                int posY = ((int)room1Coll.dwPosGameY - (level.dwPosY * 5));

                for (int yd = posY, ys = 0; ys < room1.dwYSize; yd++, ys++)
                {
                    for (int xd = posX, xs = 0; xs < room1.dwXSize; xd++, xs++)
                    {
                        if (ys == 0 && xs == 0)
                            levelCollisionGraph[xd, yd] = 0x55;
                        else
                            levelCollisionGraph[xd, yd] = roomCollisionGraph[xs, ys];
                    }
                }