1 /*
2 Copyright (C) Prikol Software 1996-1997
3 Copyright (C) Aleksey Volynskov 1996-1997
5 This file is part of the Doom2D:Rembo project.
7 Doom2D:Rembo is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License version 2 as
9 published by the Free Software Foundation.
11 Doom2D:Rembo is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, see <http://www.gnu.org/licenses/> or
18 write to the Free Software Foundation, Inc.,
19 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 */
23 #include <stdio.h>
24 #include <stdlib.h>
25 #include <string.h>
39 //unsigned char fx_scr1[64000],fx_scr2[64000];
41 #define SINP 256
42 #define SINPM (SINP-1)
43 #define W (SINP/100)
47 };
54 }
60 }
62 /*
63 void FX_trans1 (int t) {
64 int x,y,u,v;
65 static unsigned char k;
66 unsigned p;
68 setamp(t);
69 k=t;
70 t*=W;
71 for(y=0,p=0;y<200;++y)
72 for(x=0;x<320;++x,++p) {
73 if(dmap[(y&31)*32+(x&31)]>=k) {
74 u=x+((isin(y+t))>>16);
75 v=y+((isin(u+t))>>16);
76 if(u<0 || u>=320 || v<0 || v>=200) scra[p]=0;
77 else scra[p]=fx_scr1[v*320+u];
78 }else scra[p]=fx_scr2[p];
79 }
80 }
81 */
93 }
96 }
97 }
98 }
104 }
112 }
116 byte b;
133 }
134 }
143 }
151 }
159 }
170 }
171 }