… | |
… | |
1780 | } |
1780 | } |
1781 | } |
1781 | } |
1782 | } |
1782 | } |
1783 | } |
1783 | } |
1784 | else |
1784 | else |
|
|
1785 | { |
1785 | cell->darkness = 0; |
1786 | cell->darkness = 0; |
|
|
1787 | cell->stat_hp = 0; |
|
|
1788 | cell->flags = 0; |
|
|
1789 | cell->player = 0; |
|
|
1790 | } |
1786 | } |
1791 | } |
1787 | } |
1792 | } |
1788 | OUTPUT: |
1793 | OUTPUT: |
1789 | RETVAL |
1794 | RETVAL |
1790 | |
1795 | |
… | |
… | |
1842 | } |
1847 | } |
1843 | OUTPUT: |
1848 | OUTPUT: |
1844 | RETVAL |
1849 | RETVAL |
1845 | |
1850 | |
1846 | void |
1851 | void |
1847 | draw (DC::Map self, int mx, int my, int sw, int sh, int T, U32 player = 0xffffffff, int pdx = 0, int pdy = 0) |
1852 | draw (DC::Map self, int mx, int my, int sw, int sh, int T, U32 player = 0xffffffff, int sdx = 0, int sdy = 0) |
1848 | CODE: |
1853 | CODE: |
1849 | { |
1854 | { |
1850 | int x, y, z; |
1855 | int x, y, z; |
1851 | |
1856 | |
1852 | HV *smooth = (HV *)sv_2mortal ((SV *)newHV ()); |
1857 | HV *smooth = (HV *)sv_2mortal ((SV *)newHV ()); |
… | |
… | |
2099 | } |
2104 | } |
2100 | |
2105 | |
2101 | if (pl_tex.name) |
2106 | if (pl_tex.name) |
2102 | { |
2107 | { |
2103 | maptex tex = pl_tex; |
2108 | maptex tex = pl_tex; |
2104 | int px = pl_x + pdx; |
2109 | int px = pl_x + sdx; |
2105 | int py = pl_y + pdy; |
2110 | int py = pl_y + sdy; |
2106 | |
2111 | |
2107 | key.texname = tex.name; |
2112 | key.texname = tex.name; |
2108 | arr = rc_array (rc, &key); |
2113 | arr = rc_array (rc, &key); |
2109 | |
2114 | |
2110 | rc_t2f_v3f (arr, 0 , 0 , px , py , 0); |
2115 | rc_t2f_v3f (arr, 0 , 0 , px , py , 0); |