ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/Client.xs
(Generate patch)

Comparing deliantra/Deliantra-Client/Client.xs (file contents):
Revision 1.264 by root, Fri Jul 18 22:32:54 2008 UTC vs.
Revision 1.266 by root, Sun Jul 20 02:51:40 2008 UTC

756 m = SDL_ListModes (0, SDL_FULLSCREEN | SDL_OPENGL); 756 m = SDL_ListModes (0, SDL_FULLSCREEN | SDL_OPENGL);
757 757
758 if (m && m != (SDL_Rect **)-1) 758 if (m && m != (SDL_Rect **)-1)
759 while (*m) 759 while (*m)
760 { 760 {
761 if ((*m)->w >= 400 && (*m)->h >= 300)
762 {
761 AV *av = newAV (); 763 AV *av = newAV ();
762 av_push (av, newSViv ((*m)->w)); 764 av_push (av, newSViv ((*m)->w));
763 av_push (av, newSViv ((*m)->h)); 765 av_push (av, newSViv ((*m)->h));
764 av_push (av, newSViv (rgb)); 766 av_push (av, newSViv (rgb));
765 av_push (av, newSViv (alpha)); 767 av_push (av, newSViv (alpha));
766 XPUSHs (sv_2mortal (newRV_noinc ((SV *)av))); 768 XPUSHs (sv_2mortal (newRV_noinc ((SV *)av)));
769 }
767 770
768 ++m; 771 ++m;
769 } 772 }
770} 773}
771 774
1777 } 1780 }
1778 } 1781 }
1779 } 1782 }
1780 } 1783 }
1781 else 1784 else
1785 {
1782 cell->darkness = 0; 1786 cell->darkness = 0;
1787 cell->stat_hp = 0;
1788 cell->flags = 0;
1789 cell->player = 0;
1790 }
1783 } 1791 }
1784} 1792}
1785 OUTPUT: 1793 OUTPUT:
1786 RETVAL 1794 RETVAL
1787 1795
1839} 1847}
1840 OUTPUT: 1848 OUTPUT:
1841 RETVAL 1849 RETVAL
1842 1850
1843void 1851void
1844draw (DC::Map self, int mx, int my, int sw, int sh, int T, U32 player = 0xffffffff, int pdx = 0, int pdy = 0) 1852draw (DC::Map self, int mx, int my, int sw, int sh, int T, U32 player = 0xffffffff, int sdx = 0, int sdy = 0)
1845 CODE: 1853 CODE:
1846{ 1854{
1847 int x, y, z; 1855 int x, y, z;
1848 1856
1849 HV *smooth = (HV *)sv_2mortal ((SV *)newHV ()); 1857 HV *smooth = (HV *)sv_2mortal ((SV *)newHV ());
2096 } 2104 }
2097 2105
2098 if (pl_tex.name) 2106 if (pl_tex.name)
2099 { 2107 {
2100 maptex tex = pl_tex; 2108 maptex tex = pl_tex;
2101 int px = pl_x + pdx; 2109 int px = pl_x + sdx;
2102 int py = pl_y + pdy; 2110 int py = pl_y + sdy;
2103 2111
2104 key.texname = tex.name; 2112 key.texname = tex.name;
2105 arr = rc_array (rc, &key); 2113 arr = rc_array (rc, &key);
2106 2114
2107 rc_t2f_v3f (arr, 0 , 0 , px , py , 0); 2115 rc_t2f_v3f (arr, 0 , 0 , px , py , 0);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines