*** empty log message ***

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@104 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2006-01-08 14:05:34 +00:00
parent d92ba946de
commit 23f6429f3f
3 changed files with 14 additions and 5 deletions
+3 -1
View File
@@ -326,7 +326,9 @@ enum // function signatures for script functions, see command.cpp
#define WIN32_LEAN_AND_MEAN
#include "windows.h"
#define _WINDOWS
#define ZLIB_DLL
#define ZLIB_DLL
#define cos(x) cos((float)(x))
#define sin(x) sin((float)(x))
#else
#include <dlfcn.h>
#endif
+10 -2
View File
@@ -252,6 +252,14 @@ void item(int num)
if (num==7) { player1->hasarmour=!player1->hasarmour; /*toggle armour*/ };
};
};
void primary(int num)
{
if(num>0 && num<7) player1->primary = num;
radd(player1);
}
COMMAND(item,ARG_1INT);
COMMAND(item,ARG_1INT);
COMMAND(primary,ARG_1INT);
+1 -2
View File
@@ -475,8 +475,7 @@ void rendermd3gun()
sway.x*=swayspeed;
sway.y*=swayspeed;
sway.z*=swayspeed;
sway.z*=swayspeed;
weapon->draw( player1->o.x-unitv.x*k_back+sway.x,
player1->o.z-unitv.z*k_back+sway.z,