maxdim comments, fix the Marea value, shotgun frag fix (i thought it was already committed)

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5251 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Rafael Barreto
2010-06-29 15:47:32 +00:00
parent c9e3702197
commit ec9df808b2
4 changed files with 15 additions and 12 deletions
+2 -3
View File
@@ -9,8 +9,7 @@ inline float pow2(float x)
#define MINELINE 50
//FIXME
/* There are smarter ways to implement this function */
// flowtron: 2010jun27 : mapdims[6] is probably "good enough" - so this might be deprecated - mapdims would need a server-side implementation though.
/* There are smarter ways to implement this function, but must probably they will be very complex */
int getmaxarea(int inversed_x, int inversed_y, int transposed, int maplayout_factor, char *maplayout)
{
int ls = (1 << maplayout_factor);
@@ -116,7 +115,7 @@ inline void addpt(client *c, int points) {
#define FRAGPT 10 // player frags (normal)
#define HEADSHOTPT 15 // player gibs with head shot
#define KNIFEPT 20 // player gibs with the knife
#define SHOTGPT 15 // player gibs with the shotgun
#define SHOTGPT 12 // player gibs with the shotgun
#define TKPT -10 // player tks
#define FLAGTKPT -(10+cnumber) // player tks the flag keeper/stealer