X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2F0.c;h=ba9ced8030eb1fbd679062c17c7c224f6d2fdf6a;hb=c421d6353c601dc59f7d9e42883f0711c6a89805;hp=2d55bcdfdddc3edbabe1432e1423531f9eb3ff23;hpb=62e514036d73a377dcbc7c8fb1e35807a972179a;p=16.git
diff --git a/src/0.c b/src/0.c
index 2d55bcdf..ba9ced80 100755
--- a/src/0.c
+++ b/src/0.c
@@ -1,3 +1,25 @@
+/* Project 16 Source Code~
+ * Copyright (C) 2012-2017 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover
+ *
+ * This file is part of Project 16.
+ *
+ * Project 16 is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Project 16 is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see , or
+ * write to the Free Software Foundation, Inc., 51 Franklin Street,
+ * Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ */
+
#include
#include
#include
@@ -12,7 +34,6 @@
#define INITTNUM 1
-player_t player[MaxPlayers];
map_view_t mv[4];
map_t map;//junk var
@@ -82,8 +103,8 @@ int main(int argc,char **argv)
if (vrl_lineoffs == NULL) return 1;
IN_Startup();
- IN_Default(0,&player,ctrl_Keyboard1);
- EN_initplayer(&player, 0);
+ IN_Default(0,&gvar.player,ctrl_Keyboard1);
+ EN_initPlayer(&gvar.player, 0, &gvar.video);
/* setup camera and screen~ */
modexHiganbanaPageSetup(&gvar.video);
@@ -120,9 +141,9 @@ int main(int argc,char **argv)
while(!IN_KeyDown(sc_Escape))
{
- IN_ReadControl(0,&player);
+ IN_ReadControl(0,&gvar.player);
if(IN_KeyDown(68)){ gvar.kurokku.fpscap=!gvar.kurokku.fpscap; IN_UserInput(1,1); } //f10
- PANKEYFUN;
+ TAIL_PANKEYFUN;
if(IN_KeyDown(sc_Space) || zerostoppause) //space
{
anim=!anim;
@@ -133,11 +154,11 @@ int main(int argc,char **argv)
gvar.video.page[0].dx=gvar.video.page[0].dy=gvar.video.page[1].dx=gvar.video.page[1].dy=16;
mv[0].tx = mv[0].ty = mv[1].tx = mv[1].ty = INITTNUM;
VL_ShowPage(&gvar.video.page[gvar.video.sp], 1, 0);
- player[0].enti.q = 1; player[0].enti.d = 2;
+ gvar.player[0].enti.q = 1; gvar.player[0].enti.d = 2;
x=y=0;
xdir=ydir=1;
} //R
- FUNCTIONKEYFUNCTIONS0EXE;
+ TAIL_FUNCTIONKEYFUNCTIONS0EXE;
if(anim && !noanim)
{