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>
48 #define LT_DELAY 8
49 #define LT_HITTIME 6
51 #define GETIME 1092
53 byte transdraw;
54 byte _2pl;
55 byte g_dm;
57 byte g_exit;
60 dword g_time;
65 byte cheat;
84 }
89 }
91 }
105 //MUS_start(music_time);
107 }
129 //MUS_start(music_time);
131 }
133 #define GGAS_TOTAL (MN__LAST-MN_DEMON+16+10)
159 }
162 /*
163 switch(g_map) {
164 case 3: return A8_start("FALL");
165 case 4: return A8_start("KORIDOR");
166 case 5: return A8_start("SKULL");
167 case 6: return A8_start("TORCHES");
168 case 7: return A8_start("CACO");
169 case 8: return A8_start("DARTS");
170 case 9: return A8_start("FISH");
171 case 10: return A8_start("TRAP");
172 case 11: return A8_start("JAIL");
173 case 12: return A8_start("MMON1");
174 case 13: return A8_start("TOWER");
175 case 14: return A8_start("SAPOG");
176 case 15: return A8_start("SWITCH");
177 case 16: return A8_start("ACCEL");
178 case 17: return A8_start("MEAT");
179 case 18: return A8_start("LEGION");
180 case 19: return A8_start("CLOUDS");
181 }
182 */
184 }
188 /*
189 switch(g_map) {
190 case 1: return A8_start("TRUBA");
191 case 10: return A8_start("GOTCHA");
192 }
193 */
195 }
199 /*
200 if(g_trans) {
201 if(g_transt==0) {
202 V_setscr(NULL);memcpy(fx_scr1,scra,64000);
203 V_setscr(fx_scr2);
204 transdraw=1;G_draw();transdraw=0;
205 V_setscr(scrbuf);
206 }
207 FX_trans1(g_transt*2);
208 V_copytoscr(0,320,0,200);
209 if(++g_transt>32) {
210 g_trans=0;
211 }
212 return;
213 g_trans=0;
214 }
224 }
225 // V_copytoscr(0,SCRW,0,SCRH);//V_copytoscr(0,320,0,200);
233 }
235 }
236 // V_copytoscr(0,SCRW,0,SCRH);//V_copytoscr(0,320,0,200);
241 }
252 #ifdef DEMO
255 }
256 #else
263 }
264 }
265 #endif
267 }
279 }
281 }
314 }
321 }
323 inter:
328 }
335 }
342 }
346 }
348 #ifdef DEMO
350 #endif
351 }
362 }
367 }