1 /* Copyright (C) 1996-1997 Aleksey Volynskov
2 * Copyright (C) 2011 Rambo
3 * Copyright (C) 2020 SovietPony
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, version 3 of the License ONLY.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
19 #include <stdio.h>
20 #include <stdlib.h>
21 #include <string.h>
47 #define LT_DELAY 8
48 #define LT_HITTIME 6
50 #define GETIME 1092
52 byte transdraw;
53 byte _2pl;
54 byte g_dm;
56 byte g_exit;
59 dword g_time;
64 byte cheat;
83 }
88 }
90 }
104 //MUS_start(music_time);
106 }
128 //MUS_start(music_time);
130 }
132 #define GGAS_TOTAL (MN__LAST-MN_DEMON+16+10)
158 }
161 /*
162 switch(g_map) {
163 case 3: return A8_start("FALL");
164 case 4: return A8_start("KORIDOR");
165 case 5: return A8_start("SKULL");
166 case 6: return A8_start("TORCHES");
167 case 7: return A8_start("CACO");
168 case 8: return A8_start("DARTS");
169 case 9: return A8_start("FISH");
170 case 10: return A8_start("TRAP");
171 case 11: return A8_start("JAIL");
172 case 12: return A8_start("MMON1");
173 case 13: return A8_start("TOWER");
174 case 14: return A8_start("SAPOG");
175 case 15: return A8_start("SWITCH");
176 case 16: return A8_start("ACCEL");
177 case 17: return A8_start("MEAT");
178 case 18: return A8_start("LEGION");
179 case 19: return A8_start("CLOUDS");
180 }
181 */
183 }
187 /*
188 switch(g_map) {
189 case 1: return A8_start("TRUBA");
190 case 10: return A8_start("GOTCHA");
191 }
192 */
194 }
198 /*
199 if(g_trans) {
200 if(g_transt==0) {
201 V_setscr(NULL);memcpy(fx_scr1,scra,64000);
202 V_setscr(fx_scr2);
203 transdraw=1;G_draw();transdraw=0;
204 V_setscr(scrbuf);
205 }
206 FX_trans1(g_transt*2);
207 V_copytoscr(0,320,0,200);
208 if(++g_transt>32) {
209 g_trans=0;
210 }
211 return;
212 g_trans=0;
213 }
223 }
224 // V_copytoscr(0,SCRW,0,SCRH);//V_copytoscr(0,320,0,200);
232 }
234 }
235 // V_copytoscr(0,SCRW,0,SCRH);//V_copytoscr(0,320,0,200);
240 }
251 #ifdef DEMO
254 }
255 #else
262 }
263 }
264 #endif
266 }
278 }
280 }
313 }
320 }
322 inter:
327 }
334 }
341 }
345 }
347 #ifdef DEMO
349 #endif
350 }
361 }
366 }