*** 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:
+3
-1
@@ -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
@@ -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);
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user