142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
|
int curtexnum = 0;
void
texturereset()
{
curtexnum = 0;
};
void
texture(char *aframe, char *name)
{
int num = curtexnum++, frame = atoi(aframe);
if (num < 0 || num >= 256 || frame < 0 || frame >= MAXFRAMES)
return;
mapping[num][frame] = 1;
char *n = mapname[num][frame];
strcpy_s(n, name);
path(n);
};
COMMAND(texturereset, ARG_NONE);
COMMAND(texture, ARG_2STR);
int
lookuptexture(int tex, int &xs, int &ys)
{
int frame = 0; // other frames?
int tid = mapping[tex][frame];
|
<
>
>
<
|
<
|
|
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
|
int curtexnum = 0;
void
texturereset()
{
curtexnum = 0;
}
COMMAND(texturereset, ARG_NONE)
void
texture(char *aframe, char *name)
{
int num = curtexnum++, frame = atoi(aframe);
if (num < 0 || num >= 256 || frame < 0 || frame >= MAXFRAMES)
return;
mapping[num][frame] = 1;
char *n = mapname[num][frame];
strcpy_s(n, name);
path(n);
}
COMMAND(texture, ARG_2STR)
int
lookuptexture(int tex, int &xs, int &ys)
{
int frame = 0; // other frames?
int tid = mapping[tex][frame];
|