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.296 by root, Mon Dec 21 23:52:34 2009 UTC vs.
Revision 1.297 by root, Tue Dec 22 00:08:11 2009 UTC

97 97
98#define KMOD_LRAM 0x10000 // our extension 98#define KMOD_LRAM 0x10000 // our extension
99 99
100#define TEXID_SPEECH 1 100#define TEXID_SPEECH 1
101#define TEXID_NOFACE 2 101#define TEXID_NOFACE 2
102#define TEXID_HIDDEN 3
103 102
104static AV *texture_av; 103static AV *texture_av;
105 104
106static struct 105static struct
107{ 106{
2141 int pl_x, pl_y; 2140 int pl_x, pl_y;
2142 maptex pl_tex; 2141 maptex pl_tex;
2143 rc_t *rc = rc_alloc (); 2142 rc_t *rc = rc_alloc ();
2144 rc_t *rc_ov = rc_alloc (); 2143 rc_t *rc_ov = rc_alloc ();
2145 rc_key_t key; 2144 rc_key_t key;
2146 rc_array_t *arr, *arr_hidden; 2145 rc_array_t *arr;
2147 2146
2148 pl_tex.name = 0; 2147 pl_tex.name = 0;
2149 2148
2150 // that's current max. sorry. 2149 // that's current max. sorry.
2151 if (sw > 255) sw = 255; 2150 if (sw > 255) sw = 255;
2188 } 2187 }
2189 2188
2190 glEnable (GL_BLEND); 2189 glEnable (GL_BLEND);
2191 glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); 2190 glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
2192 glTexEnvi (GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE); 2191 glTexEnvi (GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE);
2193
2194 key.texname = self->tex [TEXID_HIDDEN].name;
2195 arr_hidden = rc_array (rc_ov, &key);
2196 2192
2197 for (z = 0; z <= 2; z++) 2193 for (z = 0; z <= 2; z++)
2198 { 2194 {
2199 memset (smooth_level, 0, sizeof (smooth_level)); 2195 memset (smooth_level, 0, sizeof (smooth_level));
2200 key.texname = -1; 2196 key.texname = -1;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines