summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2001-10-19 12:26:45 +0000
committerTim Angus <tim@ngus.net>2001-10-19 12:26:45 +0000
commit11531c963e89e7e0acf73efd4920221b8592e4cb (patch)
tree503d478b783f8b5b81941ed6149e4ad4c1df24c1 /src
parent40aca014bafee22f1e6e9f07673da14a295f8889 (diff)
License change to OSML
Diffstat (limited to 'src')
-rw-r--r--src/cgame/cg_animmapobj.c21
-rw-r--r--src/cgame/cg_buildable.c28
-rw-r--r--src/cgame/cg_consolecmds.c21
-rw-r--r--src/cgame/cg_draw.c21
-rw-r--r--src/cgame/cg_drawtools.c21
-rw-r--r--src/cgame/cg_ents.c21
-rw-r--r--src/cgame/cg_event.c21
-rw-r--r--src/cgame/cg_local.h25
-rw-r--r--src/cgame/cg_main.c25
-rw-r--r--src/cgame/cg_marks.c21
-rw-r--r--src/cgame/cg_particles.c13
-rw-r--r--src/cgame/cg_players.c21
-rw-r--r--src/cgame/cg_playerstate.c21
-rw-r--r--src/cgame/cg_predict.c21
-rw-r--r--src/cgame/cg_public.h21
-rw-r--r--src/cgame/cg_scanner.c25
-rw-r--r--src/cgame/cg_servercmds.c21
-rw-r--r--src/cgame/cg_snapshot.c21
-rw-r--r--src/cgame/cg_syscalls.c21
-rw-r--r--src/cgame/cg_view.c21
-rw-r--r--src/cgame/cg_weapons.c26
-rw-r--r--src/cgame/tr_types.h21
-rw-r--r--src/game/bg_lib.c21
-rw-r--r--src/game/bg_lib.h21
-rw-r--r--src/game/bg_local.h21
-rw-r--r--src/game/bg_misc.c29
-rw-r--r--src/game/bg_pmove.c21
-rw-r--r--src/game/bg_public.h24
-rw-r--r--src/game/bg_slidemove.c21
-rw-r--r--src/game/g_active.c43
-rw-r--r--src/game/g_buildable.c117
-rw-r--r--src/game/g_client.c26
-rw-r--r--src/game/g_cmds.c55
-rw-r--r--src/game/g_combat.c21
-rw-r--r--src/game/g_local.h23
-rw-r--r--src/game/g_main.c21
-rw-r--r--src/game/g_misc.c21
-rw-r--r--src/game/g_missile.c23
-rw-r--r--src/game/g_mover.c21
-rw-r--r--src/game/g_public.h21
-rw-r--r--src/game/g_session.c21
-rw-r--r--src/game/g_spawn.c21
-rw-r--r--src/game/g_svcmds.c21
-rw-r--r--src/game/g_syscalls.c21
-rw-r--r--src/game/g_target.c21
-rw-r--r--src/game/g_team.c21
-rw-r--r--src/game/g_trigger.c21
-rw-r--r--src/game/g_utils.c21
-rw-r--r--src/game/g_weapon.c76
-rw-r--r--src/game/q_math.c21
-rw-r--r--src/game/q_shared.c21
-rw-r--r--src/game/q_shared.h21
-rw-r--r--src/game/surfaceflags.h21
-rw-r--r--src/ui/keycodes.h14
-rw-r--r--src/ui/ui_atoms.c14
-rw-r--r--src/ui/ui_gameinfo.c14
-rw-r--r--src/ui/ui_local.h14
-rw-r--r--src/ui/ui_main.c14
-rw-r--r--src/ui/ui_players.c14
-rw-r--r--src/ui/ui_public.h14
-rw-r--r--src/ui/ui_shared.c13
-rw-r--r--src/ui/ui_shared.h13
-rw-r--r--src/ui/ui_syscalls.c16
63 files changed, 563 insertions, 933 deletions
diff --git a/src/cgame/cg_animmapobj.c b/src/cgame/cg_animmapobj.c
index 34287c68..d911604a 100644
--- a/src/cgame/cg_animmapobj.c
+++ b/src/cgame/cg_animmapobj.c
@@ -1,25 +1,14 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#include "cg_local.h"
diff --git a/src/cgame/cg_buildable.c b/src/cgame/cg_buildable.c
index 5de77173..faa7d55c 100644
--- a/src/cgame/cg_buildable.c
+++ b/src/cgame/cg_buildable.c
@@ -1,25 +1,14 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#include "cg_local.h"
@@ -337,7 +326,12 @@ void CG_GhostBuildable( buildable_t buildable )
AnglesToAxis( angles, ent.axis );
ent.hModel = cg_buildables[ buildable ].models[ 0 ];
- ent.customShader = cgs.media.quadShader;
+
+ if( ps->stats[ STAT_BUILDABLE ] & SB_VALID_TOGGLEBIT )
+ ent.customShader = cgs.media.greenBuildShader;
+ else
+ ent.customShader = cgs.media.redBuildShader;
+
ent.nonNormalizedAxes = qfalse;
// add to refresh list
diff --git a/src/cgame/cg_consolecmds.c b/src/cgame/cg_consolecmds.c
index f939ca82..0d22015d 100644
--- a/src/cgame/cg_consolecmds.c
+++ b/src/cgame/cg_consolecmds.c
@@ -6,27 +6,16 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
- */
-
#include "cg_local.h"
diff --git a/src/cgame/cg_draw.c b/src/cgame/cg_draw.c
index 5bbc23ed..9fbf232b 100644
--- a/src/cgame/cg_draw.c
+++ b/src/cgame/cg_draw.c
@@ -6,25 +6,14 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#include "cg_local.h"
diff --git a/src/cgame/cg_drawtools.c b/src/cgame/cg_drawtools.c
index 6aa4a581..446018a5 100644
--- a/src/cgame/cg_drawtools.c
+++ b/src/cgame/cg_drawtools.c
@@ -5,25 +5,14 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#include "cg_local.h"
diff --git a/src/cgame/cg_ents.c b/src/cgame/cg_ents.c
index 6e5fbdcf..aa387211 100644
--- a/src/cgame/cg_ents.c
+++ b/src/cgame/cg_ents.c
@@ -5,27 +5,16 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
- */
-
#include "cg_local.h"
diff --git a/src/cgame/cg_event.c b/src/cgame/cg_event.c
index adf51128..ef458326 100644
--- a/src/cgame/cg_event.c
+++ b/src/cgame/cg_event.c
@@ -5,27 +5,16 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
- */
-
#include "cg_local.h"
// for the voice chats
diff --git a/src/cgame/cg_local.h b/src/cgame/cg_local.h
index 33dfea74..726622c2 100644
--- a/src/cgame/cg_local.h
+++ b/src/cgame/cg_local.h
@@ -4,27 +4,16 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
- */
-
#include "../game/q_shared.h"
#include "tr_types.h"
#include "../game/bg_public.h"
@@ -848,6 +837,10 @@ typedef struct {
qhandle_t redKamikazeShader;
qhandle_t blueKamikazeShader;
+ //TA: buildable shaders
+ qhandle_t greenBuildShader;
+ qhandle_t redBuildShader;
+
// weapon effect models
qhandle_t bulletFlashModel;
qhandle_t ringFlashModel;
diff --git a/src/cgame/cg_main.c b/src/cgame/cg_main.c
index 3bf26193..7d0e9a7d 100644
--- a/src/cgame/cg_main.c
+++ b/src/cgame/cg_main.c
@@ -5,25 +5,14 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#include "cg_local.h"
@@ -772,6 +761,10 @@ static void CG_RegisterGraphics( void ) {
cgs.media.backTileShader = trap_R_RegisterShader( "gfx/2d/backtile" );
cgs.media.noammoShader = trap_R_RegisterShader( "icons/noammo" );
+ //TA: building shaders
+ cgs.media.greenBuildShader = trap_R_RegisterShader("gfx/2d/greenbuild" );
+ cgs.media.redBuildShader = trap_R_RegisterShader("gfx/2d/redbuild" );
+
// powerup shaders
cgs.media.quadShader = trap_R_RegisterShader("powerups/quad" );
cgs.media.quadWeaponShader = trap_R_RegisterShader("powerups/quadWeapon" );
diff --git a/src/cgame/cg_marks.c b/src/cgame/cg_marks.c
index 229ce145..7dbb7c1f 100644
--- a/src/cgame/cg_marks.c
+++ b/src/cgame/cg_marks.c
@@ -5,25 +5,14 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#include "cg_local.h"
diff --git a/src/cgame/cg_particles.c b/src/cgame/cg_particles.c
index 9b216ceb..697d6a7d 100644
--- a/src/cgame/cg_particles.c
+++ b/src/cgame/cg_particles.c
@@ -1,6 +1,19 @@
// Rafael particles
// cg_particles.c
+/*
+ * Portions Copyright (C) 2000-2001 Tim Angus
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
+ *
+ * This program 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.
+ */
+
#include "cg_local.h"
#define BLOODRED 2
diff --git a/src/cgame/cg_players.c b/src/cgame/cg_players.c
index 5237b61b..016eebd7 100644
--- a/src/cgame/cg_players.c
+++ b/src/cgame/cg_players.c
@@ -5,25 +5,14 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#include "cg_local.h"
diff --git a/src/cgame/cg_playerstate.c b/src/cgame/cg_playerstate.c
index ec4df684..7573b471 100644
--- a/src/cgame/cg_playerstate.c
+++ b/src/cgame/cg_playerstate.c
@@ -8,27 +8,16 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
- */
-
#include "cg_local.h"
/*
diff --git a/src/cgame/cg_predict.c b/src/cgame/cg_predict.c
index 3ff351ad..3a2ae803 100644
--- a/src/cgame/cg_predict.c
+++ b/src/cgame/cg_predict.c
@@ -8,27 +8,16 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
- */
-
#include "cg_local.h"
static pmove_t cg_pmove;
diff --git a/src/cgame/cg_public.h b/src/cgame/cg_public.h
index a090ae16..86318beb 100644
--- a/src/cgame/cg_public.h
+++ b/src/cgame/cg_public.h
@@ -4,25 +4,14 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#define CMD_BACKUP 64
diff --git a/src/cgame/cg_scanner.c b/src/cgame/cg_scanner.c
index e67bd0b6..e02939bd 100644
--- a/src/cgame/cg_scanner.c
+++ b/src/cgame/cg_scanner.c
@@ -1,35 +1,20 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
- */
-
#include "cg_local.h"
#define RANGE 1000.0f
-/*#define XPOS 140.0f
-#define YPOS 320.0f
-#define WIDTH 360.0f
-#define HEIGHT 80.0f*/
#define XPOS 0.0f
#define YPOS 0.0f
#define WIDTH 640.0f
diff --git a/src/cgame/cg_servercmds.c b/src/cgame/cg_servercmds.c
index ff419cb9..8877b389 100644
--- a/src/cgame/cg_servercmds.c
+++ b/src/cgame/cg_servercmds.c
@@ -7,27 +7,16 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
- */
-
#include "cg_local.h"
#include "../../ui/menudef.h"
diff --git a/src/cgame/cg_snapshot.c b/src/cgame/cg_snapshot.c
index d172803f..60520dc1 100644
--- a/src/cgame/cg_snapshot.c
+++ b/src/cgame/cg_snapshot.c
@@ -6,27 +6,16 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
- */
-
#include "cg_local.h"
diff --git a/src/cgame/cg_syscalls.c b/src/cgame/cg_syscalls.c
index d1d962f4..517314d0 100644
--- a/src/cgame/cg_syscalls.c
+++ b/src/cgame/cg_syscalls.c
@@ -6,27 +6,16 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
- */
-
#include "cg_local.h"
static int (QDECL *syscall)( int arg, ... ) = (int (QDECL *)( int, ...))-1;
diff --git a/src/cgame/cg_view.c b/src/cgame/cg_view.c
index 36dccc49..a8c04291 100644
--- a/src/cgame/cg_view.c
+++ b/src/cgame/cg_view.c
@@ -6,27 +6,16 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
- */
-
#include "cg_local.h"
diff --git a/src/cgame/cg_weapons.c b/src/cgame/cg_weapons.c
index efde2187..07007759 100644
--- a/src/cgame/cg_weapons.c
+++ b/src/cgame/cg_weapons.c
@@ -5,27 +5,16 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
- */
-
#include "cg_local.h"
/*
@@ -1353,8 +1342,9 @@ void CG_AddViewWeapon( playerState_t *ps ) {
return;
}
- /*if( ps->stats[ STAT_BUILDABLE ] & SB_ACTIVE_TOGGLEBIT )*/
- CG_GhostBuildable( BA_H_SPAWN );
+ //TA: draw a prospective buildable infront of the player
+ if( ( ps->stats[ STAT_BUILDABLE ] & ~SB_VALID_TOGGLEBIT ) > BA_NONE )
+ CG_GhostBuildable( ps->stats[ STAT_BUILDABLE ] & ~SB_VALID_TOGGLEBIT );
// no gun if in third person view
if ( cg.renderingThirdPerson ) {
diff --git a/src/cgame/tr_types.h b/src/cgame/tr_types.h
index 0c62c617..fa5ae08f 100644
--- a/src/cgame/tr_types.h
+++ b/src/cgame/tr_types.h
@@ -4,25 +4,14 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#ifndef __TR_TYPES_H
diff --git a/src/game/bg_lib.c b/src/game/bg_lib.c
index 6466108a..7041aa39 100644
--- a/src/game/bg_lib.c
+++ b/src/game/bg_lib.c
@@ -8,25 +8,14 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#include "q_shared.h"
diff --git a/src/game/bg_lib.h b/src/game/bg_lib.h
index 99efe089..55fc25a0 100644
--- a/src/game/bg_lib.h
+++ b/src/game/bg_lib.h
@@ -6,25 +6,14 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
typedef int size_t;
diff --git a/src/game/bg_local.h b/src/game/bg_local.h
index 43ac67fd..790a38df 100644
--- a/src/game/bg_local.h
+++ b/src/game/bg_local.h
@@ -5,25 +5,14 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#define MIN_WALK_NORMAL 0.7f // can't walk on very steep slopes
diff --git a/src/game/bg_misc.c b/src/game/bg_misc.c
index 03472b08..43aa0359 100644
--- a/src/game/bg_misc.c
+++ b/src/game/bg_misc.c
@@ -5,25 +5,14 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#include "q_shared.h"
@@ -3003,7 +2992,7 @@ weaponAttributes_t bg_weapons[ ] =
0, //int quan;
0, //int clips;
0, //int maxClips;
- qfalse, //qboolean hasAltMode;
+ qtrue, //qboolean hasAltMode;
qfalse //qboolean synced;
},
{
@@ -3015,7 +3004,7 @@ weaponAttributes_t bg_weapons[ ] =
0, //int quan;
0, //int clips;
0, //int maxClips;
- qfalse, //qboolean hasAltMode;
+ qtrue, //qboolean hasAltMode;
qfalse //qboolean synced;
},
{
@@ -3027,7 +3016,7 @@ weaponAttributes_t bg_weapons[ ] =
0, //int quan;
0, //int clips;
0, //int maxClips;
- qfalse, //qboolean hasAltMode;
+ qtrue, //qboolean hasAltMode;
qfalse //qboolean synced;
},
{
@@ -3039,7 +3028,7 @@ weaponAttributes_t bg_weapons[ ] =
0, //int quan;
0, //int clips;
0, //int maxClips;
- qfalse, //qboolean hasAltMode;
+ qtrue, //qboolean hasAltMode;
qfalse //qboolean synced;
},
{
diff --git a/src/game/bg_pmove.c b/src/game/bg_pmove.c
index fe307307..865d046e 100644
--- a/src/game/bg_pmove.c
+++ b/src/game/bg_pmove.c
@@ -6,25 +6,14 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#include "q_shared.h"
diff --git a/src/game/bg_public.h b/src/game/bg_public.h
index 2aa4e737..d1653cba 100644
--- a/src/game/bg_public.h
+++ b/src/game/bg_public.h
@@ -5,25 +5,14 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
// because games can change separately from the main system version, we need a
@@ -254,8 +243,7 @@ typedef enum {
#define SS_BLOBLOCKED 128
#define SS_POISONED 256
-#define SB_VALID_TOGGLEBIT 8192
-#define SB_ACTIVE_TOGGLEBIT 16384
+#define SB_VALID_TOGGLEBIT 16384
// player_state->persistant[] indexes
// these fields are the only part of player_state that isn't
diff --git a/src/game/bg_slidemove.c b/src/game/bg_slidemove.c
index 972dea00..9f8ce37d 100644
--- a/src/game/bg_slidemove.c
+++ b/src/game/bg_slidemove.c
@@ -5,25 +5,14 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#include "q_shared.h"
diff --git a/src/game/g_active.c b/src/game/g_active.c
index 3bff151b..e4ae4d6a 100644
--- a/src/game/g_active.c
+++ b/src/game/g_active.c
@@ -4,27 +4,16 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
- */
-
#include "g_local.h"
/*
@@ -501,6 +490,28 @@ void ClientTimerActions( gentity_t *ent, int msec )
if( client->ps.stats[ STAT_MISC ] > MAX_POUNCE_SPEED )
client->ps.stats[ STAT_MISC ] = MAX_POUNCE_SPEED;
}
+
+ switch( client->ps.weapon )
+ {
+ case WP_DBUILD:
+ case WP_DBUILD2:
+ case WP_HBUILD:
+ case WP_HBUILD2:
+ if( ( client->ps.stats[ STAT_BUILDABLE ] & ~SB_VALID_TOGGLEBIT ) > BA_NONE )
+ {
+ int dist = BG_FindBuildDistForClass( ent->client->ps.stats[ STAT_PCLASS ] );
+ vec3_t dummy;
+
+ if( G_itemFits( ent, client->ps.stats[ STAT_BUILDABLE ] & ~SB_VALID_TOGGLEBIT, dist, dummy ) == IBE_NONE )
+ client->ps.stats[ STAT_BUILDABLE ] |= SB_VALID_TOGGLEBIT;
+ else
+ client->ps.stats[ STAT_BUILDABLE ] &= ~SB_VALID_TOGGLEBIT;
+ }
+ break;
+
+ default:
+ break;
+ }
}
while( client->time1000 >= 1000 )
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c
index cec65380..6cd83ff3 100644
--- a/src/game/g_buildable.c
+++ b/src/game/g_buildable.c
@@ -1,27 +1,16 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
- */
-
#include "g_local.h"
/*
@@ -1491,8 +1480,7 @@ Checks to see if an item fits in a specific area
*/
itemBuildError_t G_itemFits( gentity_t *ent, buildable_t buildable, int distance, vec3_t origin )
{
- vec3_t forward;
- vec3_t angles;
+ vec3_t forward, angles;
vec3_t player_origin, entity_origin, target_origin;
vec3_t mins, maxs;
vec3_t temp_v;
@@ -1532,25 +1520,6 @@ itemBuildError_t G_itemFits( gentity_t *ent, buildable_t buildable, int distance
if( ent->client->ps.stats[ STAT_PTEAM ] == PTE_DROIDS )
{
//droid criteria
- //check there is creep near by for building on
-/* if( BG_FindCreepTestForBuildable( buildable ) )
- {
- for ( i = 1, tempent = g_entities + i; i < level.num_entities; i++, tempent++ )
- {
- if( !tempent->classname || tempent->s.eType != ET_BUILDABLE )
- continue;
-
- if( tempent->s.modelindex == BA_D_SPAWN || tempent->s.modelindex == BA_D_HIVEMIND )
- {
- VectorSubtract( entity_origin, tempent->s.origin, temp_v );
- if( VectorLength( temp_v ) <= ( CREEP_BASESIZE * 3 ) )
- break;
- }
- }
-
- if( i >= level.num_entities )
- reason = IBE_NOCREEP;
- }*/
//look for a hivemind
for ( i = 1, tempent = g_entities + i; i < level.num_entities; i++, tempent++ )
@@ -1835,3 +1804,77 @@ gentity_t *G_buildItem( gentity_t *builder, buildable_t buildable, vec3_t origin
return built;
}
+
+/*
+=================
+G_ValidateBuild
+=================
+*/
+void G_ValidateBuild( gentity_t *ent, buildable_t buildable )
+{
+ weapon_t weapon;
+ float dist, speed, maxspeed;
+ vec3_t origin;
+
+ speed = 0.0f; //temp hack
+
+ maxspeed = BG_FindLaunchSpeedForClass( ent->client->ps.stats[ STAT_PCLASS ] );
+
+ if( speed > maxspeed )
+ speed = maxspeed;
+
+ dist = BG_FindBuildDistForClass( ent->client->ps.stats[ STAT_PCLASS ] );
+
+ switch( G_itemFits( ent, buildable, dist, origin ) )
+ {
+ case IBE_NONE:
+ G_buildItem( ent, buildable, origin, ent->s.apos.trBase, speed );
+ break;
+
+ case IBE_NOASSERT:
+ G_AddPredictableEvent( ent, EV_MENU, MN_D_NOASSERT );
+ break;
+
+ case IBE_NOHIVEMIND:
+ G_AddPredictableEvent( ent, EV_MENU, MN_D_NOHVMND );
+ break;
+
+ case IBE_HIVEMIND:
+ G_AddPredictableEvent( ent, EV_MENU, MN_D_HIVEMIND );
+ break;
+
+ case IBE_REACTOR:
+ G_AddPredictableEvent( ent, EV_MENU, MN_H_REACTOR );
+ break;
+
+ case IBE_REPEATER:
+ G_AddPredictableEvent( ent, EV_MENU, MN_H_REPEATER );
+ break;
+
+ case IBE_NOROOM:
+ if( ent->client->ps.stats[ STAT_PTEAM ] == PTE_HUMANS )
+ G_AddPredictableEvent( ent, EV_MENU, MN_H_NOROOM );
+ else
+ G_AddPredictableEvent( ent, EV_MENU, MN_D_NOROOM );
+ break;
+
+ case IBE_NOPOWER:
+ G_AddPredictableEvent( ent, EV_MENU, MN_H_NOPOWER );
+ break;
+
+ case IBE_SPWNWARN:
+ G_AddPredictableEvent( ent, EV_MENU, MN_D_SPWNWARN );
+ G_buildItem( ent, buildable, origin, ent->s.apos.trBase, speed );
+ break;
+
+ case IBE_RPLWARN:
+ G_AddPredictableEvent( ent, EV_MENU, MN_H_RPLWARN );
+ G_buildItem( ent, buildable, origin, ent->s.apos.trBase, speed );
+ break;
+
+ case IBE_RPTWARN:
+ G_AddPredictableEvent( ent, EV_MENU, MN_H_RPTWARN );
+ G_buildItem( ent, buildable, origin, ent->s.apos.trBase, speed );
+ break;
+ }
+}
diff --git a/src/game/g_client.c b/src/game/g_client.c
index 48e3842a..d662f415 100644
--- a/src/game/g_client.c
+++ b/src/game/g_client.c
@@ -1,29 +1,19 @@
// Copyright (C) 1999-2000 Id Software, Inc.
//
+
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
-
+
#include "g_local.h"
// g_client.c -- client functions that don't happen every frame
@@ -1521,6 +1511,8 @@ void ClientSpawn( gentity_t *ent, gentity_t *spawn )
ent->client->ps.stats[ STAT_PCLASS ] = ent->client->pers.pclass;
ent->client->ps.stats[ STAT_PTEAM ] = ent->client->pers.pteam;
+
+ ent->client->ps.stats[ STAT_BUILDABLE ] = BA_NONE;
// health will count down towards max_health
ent->health = client->ps.stats[STAT_HEALTH] = client->ps.stats[STAT_MAX_HEALTH]; //* 1.25;
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index 539bb722..7c5389fc 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -4,27 +4,16 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
-
+
#include "g_local.h"
#include "../../ui/menudef.h" // for the voice chats
@@ -2119,11 +2108,11 @@ void Cmd_Build_f( gentity_t *ent )
switch( G_itemFits( ent, buildable, dist, origin ) )
{
case IBE_NONE:
- G_buildItem( ent, buildable, origin, ent->s.apos.trBase, speed );
- break;
-
- case IBE_NOCREEP:
- G_AddPredictableEvent( ent, EV_MENU, MN_D_NOCREEP );
+ case IBE_RPLWARN:
+ case IBE_RPTWARN:
+ case IBE_SPWNWARN:
+ case IBE_NOROOM:
+ ent->client->ps.stats[ STAT_BUILDABLE ] = buildable;
break;
case IBE_NOASSERT:
@@ -2146,31 +2135,9 @@ void Cmd_Build_f( gentity_t *ent )
G_AddPredictableEvent( ent, EV_MENU, MN_H_REPEATER );
break;
- case IBE_NOROOM:
- if( ent->client->ps.stats[ STAT_PTEAM ] == PTE_HUMANS )
- G_AddPredictableEvent( ent, EV_MENU, MN_H_NOROOM );
- else
- G_AddPredictableEvent( ent, EV_MENU, MN_D_NOROOM );
- break;
-
case IBE_NOPOWER:
G_AddPredictableEvent( ent, EV_MENU, MN_H_NOPOWER );
break;
-
- case IBE_SPWNWARN:
- G_AddPredictableEvent( ent, EV_MENU, MN_D_SPWNWARN );
- G_buildItem( ent, buildable, origin, ent->s.apos.trBase, speed );
- break;
-
- case IBE_RPLWARN:
- G_AddPredictableEvent( ent, EV_MENU, MN_H_RPLWARN );
- G_buildItem( ent, buildable, origin, ent->s.apos.trBase, speed );
- break;
-
- case IBE_RPTWARN:
- G_AddPredictableEvent( ent, EV_MENU, MN_H_RPTWARN );
- G_buildItem( ent, buildable, origin, ent->s.apos.trBase, speed );
- break;
}
}
else
diff --git a/src/game/g_combat.c b/src/game/g_combat.c
index fb4e073e..232d1ee1 100644
--- a/src/game/g_combat.c
+++ b/src/game/g_combat.c
@@ -5,27 +5,16 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
- */
-
#include "g_local.h"
damageRegion_t g_damageRegions[ PCL_NUM_CLASSES ][ MAX_LOCDAMAGE_REGIONS ];
diff --git a/src/game/g_local.h b/src/game/g_local.h
index 2522a176..40419f0e 100644
--- a/src/game/g_local.h
+++ b/src/game/g_local.h
@@ -5,25 +5,14 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#include "q_shared.h"
@@ -537,7 +526,6 @@ typedef enum
IBE_NONE,
IBE_NOROOM,
- IBE_NOCREEP,
IBE_NOHIVEMIND,
IBE_HIVEMIND,
IBE_NOASSERT,
@@ -553,6 +541,7 @@ typedef enum
itemBuildError_t G_itemFits( gentity_t *ent, buildable_t buildable, int distance, vec3_t origin );
gentity_t *G_buildItem( gentity_t *builder, buildable_t buildable, vec3_t origin, vec3_t angles, float speed );
+void G_ValidateBuild( gentity_t *ent, buildable_t buildable );
void G_setBuildableAnim( gentity_t *ent, buildableAnimNumber_t anim, qboolean force );
void G_setIdleBuildableAnim( gentity_t *ent, buildableAnimNumber_t anim );
diff --git a/src/game/g_main.c b/src/game/g_main.c
index e89139ae..377eabf9 100644
--- a/src/game/g_main.c
+++ b/src/game/g_main.c
@@ -4,25 +4,14 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#include "g_local.h"
diff --git a/src/game/g_misc.c b/src/game/g_misc.c
index b6711afd..29583b64 100644
--- a/src/game/g_misc.c
+++ b/src/game/g_misc.c
@@ -5,27 +5,16 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
- */
-
#include "g_local.h"
diff --git a/src/game/g_missile.c b/src/game/g_missile.c
index 24c70390..c92edc17 100644
--- a/src/game/g_missile.c
+++ b/src/game/g_missile.c
@@ -4,27 +4,16 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
-
+
#include "g_local.h"
#define MISSILE_PRESTEP_TIME 50
diff --git a/src/game/g_mover.c b/src/game/g_mover.c
index bbc03db6..098e4050 100644
--- a/src/game/g_mover.c
+++ b/src/game/g_mover.c
@@ -4,25 +4,14 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#include "g_local.h"
diff --git a/src/game/g_public.h b/src/game/g_public.h
index 28456f3b..eb6440ed 100644
--- a/src/game/g_public.h
+++ b/src/game/g_public.h
@@ -4,27 +4,16 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
- */
-
// g_public.h -- game module information visible to server
#define GAME_API_VERSION 8
diff --git a/src/game/g_session.c b/src/game/g_session.c
index 7695c96e..e53a2bf5 100644
--- a/src/game/g_session.c
+++ b/src/game/g_session.c
@@ -4,27 +4,16 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
- */
-
#include "g_local.h"
diff --git a/src/game/g_spawn.c b/src/game/g_spawn.c
index f3afeb12..653f06de 100644
--- a/src/game/g_spawn.c
+++ b/src/game/g_spawn.c
@@ -4,27 +4,16 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
- */
-
#include "g_local.h"
qboolean G_SpawnString( const char *key, const char *defaultString, char **out ) {
diff --git a/src/game/g_svcmds.c b/src/game/g_svcmds.c
index 21eafeed..b2fa3c4c 100644
--- a/src/game/g_svcmds.c
+++ b/src/game/g_svcmds.c
@@ -4,27 +4,16 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
- */
-
// this file holds commands that can be executed by the server console, but not remote clients
#include "g_local.h"
diff --git a/src/game/g_syscalls.c b/src/game/g_syscalls.c
index 00b9477d..8bbe8ab6 100644
--- a/src/game/g_syscalls.c
+++ b/src/game/g_syscalls.c
@@ -4,27 +4,16 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
- */
-
#include "g_local.h"
// this file is only included when building a dll
diff --git a/src/game/g_target.c b/src/game/g_target.c
index 08168329..f3daba36 100644
--- a/src/game/g_target.c
+++ b/src/game/g_target.c
@@ -4,27 +4,16 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
- */
-
#include "g_local.h"
//==========================================================
diff --git a/src/game/g_team.c b/src/game/g_team.c
index 528e82a4..56819ef7 100644
--- a/src/game/g_team.c
+++ b/src/game/g_team.c
@@ -4,27 +4,16 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
- */
-
#include "g_local.h"
typedef struct teamgame_s {
diff --git a/src/game/g_trigger.c b/src/game/g_trigger.c
index 33d40309..99f0d8a9 100644
--- a/src/game/g_trigger.c
+++ b/src/game/g_trigger.c
@@ -4,27 +4,16 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
- */
-
#include "g_local.h"
diff --git a/src/game/g_utils.c b/src/game/g_utils.c
index 8c013a1a..4259f0ea 100644
--- a/src/game/g_utils.c
+++ b/src/game/g_utils.c
@@ -5,27 +5,16 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
- */
-
#include "g_local.h"
typedef struct {
diff --git a/src/game/g_weapon.c b/src/game/g_weapon.c
index d4599572..3d639fd6 100644
--- a/src/game/g_weapon.c
+++ b/src/game/g_weapon.c
@@ -6,25 +6,14 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#include "g_local.h"
@@ -628,47 +617,32 @@ BUILD GUN
*/
-///////build weapons
-/*
-===============
-Weapon_Dbuild_Fire
-===============
-*/
-void Weapon_Dbuild_Fire( gentity_t *ent )
-{
- G_AddPredictableEvent( ent, EV_MENU, MN_D_BUILD );
-}
-
/*
===============
-Weapon_Dbuild2_Fire
+Weapon_Cancel_Build
===============
*/
-void Weapon_Dbuild2_Fire( gentity_t *ent )
+void Weapon_Cancel_Build( gentity_t *ent )
{
- G_AddPredictableEvent( ent, EV_MENU, MN_D_BUILD );
+ ent->client->ps.stats[ STAT_BUILDABLE ] = BA_NONE;
}
/*
===============
-Weapon_Hbuild_Fire
+Weapon_Build_Fire
===============
*/
-void Weapon_Hbuild_Fire( gentity_t *ent )
+void Weapon_Build_Fire( gentity_t *ent, dynMenu_t menu )
{
- G_AddPredictableEvent( ent, EV_MENU, MN_H_BUILD );
+ if( ( ent->client->ps.stats[ STAT_BUILDABLE ] & ~SB_VALID_TOGGLEBIT ) > BA_NONE )
+ {
+ ent->client->ps.stats[ STAT_BUILDABLE ] = BA_NONE;
+ G_ValidateBuild( ent, ent->client->ps.stats[ STAT_BUILDABLE ] );
+ }
+ else
+ G_AddPredictableEvent( ent, EV_MENU, menu );
}
-/*
-===============
-Weapon_Hbuild2_Fire
-===============
-*/
-void Weapon_Hbuild2_Fire( gentity_t *ent )
-{
- G_AddPredictableEvent( ent, EV_MENU, MN_H_BUILD );
-}
-///////build weapons
/*
======================================================================
@@ -1100,16 +1074,16 @@ void FireWeapon2( gentity_t *ent )
case WP_POUNCE:
break;
case WP_DBUILD:
- Weapon_Dbuild_Fire( ent );
+ Weapon_Cancel_Build( ent );
break;
case WP_DBUILD2:
- Weapon_Dbuild2_Fire( ent );
+ Weapon_Cancel_Build( ent );
break;
case WP_HBUILD:
- Weapon_Hbuild_Fire( ent );
+ Weapon_Cancel_Build( ent );
break;
case WP_HBUILD2:
- Weapon_Hbuild2_Fire( ent );
+ Weapon_Cancel_Build( ent );
break;
default:
// FIXME G_Error( "Bad ent->s.weapon" );
@@ -1194,16 +1168,16 @@ void FireWeapon( gentity_t *ent )
Weapon_Claw_Fire( ent );
break;
case WP_DBUILD:
- Weapon_Dbuild_Fire( ent );
+ Weapon_Build_Fire( ent, MN_D_BUILD );
break;
case WP_DBUILD2:
- Weapon_Dbuild2_Fire( ent );
+ Weapon_Build_Fire( ent, MN_D_BUILD );
break;
case WP_HBUILD:
- Weapon_Hbuild_Fire( ent );
+ Weapon_Build_Fire( ent, MN_H_BUILD );
break;
case WP_HBUILD2:
- Weapon_Hbuild2_Fire( ent );
+ Weapon_Build_Fire( ent, MN_H_BUILD );
break;
default:
// FIXME G_Error( "Bad ent->s.weapon" );
diff --git a/src/game/q_math.c b/src/game/q_math.c
index ce671f1f..dd1a532d 100644
--- a/src/game/q_math.c
+++ b/src/game/q_math.c
@@ -5,27 +5,16 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
- */
-
#include "q_shared.h"
diff --git a/src/game/q_shared.c b/src/game/q_shared.c
index 91784e93..4bf77a8d 100644
--- a/src/game/q_shared.c
+++ b/src/game/q_shared.c
@@ -5,27 +5,16 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
- */
-
#include "q_shared.h"
float Com_Clamp( float min, float max, float value ) {
diff --git a/src/game/q_shared.h b/src/game/q_shared.h
index 9e82c79d..5b74cc67 100644
--- a/src/game/q_shared.h
+++ b/src/game/q_shared.h
@@ -4,25 +4,14 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#ifndef __Q_SHARED_H
diff --git a/src/game/surfaceflags.h b/src/game/surfaceflags.h
index a1454800..455a1054 100644
--- a/src/game/surfaceflags.h
+++ b/src/game/surfaceflags.h
@@ -5,25 +5,14 @@
/*
* Portions Copyright (C) 2000-2001 Tim Angus
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1, or (at your option)
- * any later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
*
* This program 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-
-/* To assertain which portions are licensed under the LGPL and which are
- * licensed by Id Software, Inc. please run a diff between the equivalent
- * versions of the "Tremulous" modification and the unmodified "Quake3"
- * game source code.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
// contents flags are seperate bits
diff --git a/src/ui/keycodes.h b/src/ui/keycodes.h
index 7a2a695b..b0830de2 100644
--- a/src/ui/keycodes.h
+++ b/src/ui/keycodes.h
@@ -1,5 +1,19 @@
// Copyright (C) 1999-2000 Id Software, Inc.
//
+
+/*
+ * Portions Copyright (C) 2000-2001 Tim Angus
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
+ *
+ * This program 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.
+ */
+
#ifndef __KEYCODES_H__
#define __KEYCODES_H__
diff --git a/src/ui/ui_atoms.c b/src/ui/ui_atoms.c
index 6a6ddda6..41f538ff 100644
--- a/src/ui/ui_atoms.c
+++ b/src/ui/ui_atoms.c
@@ -1,5 +1,19 @@
// Copyright (C) 1999-2000 Id Software, Inc.
//
+
+/*
+ * Portions Copyright (C) 2000-2001 Tim Angus
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
+ *
+ * This program 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.
+ */
+
/**********************************************************************
UI_ATOMS.C
diff --git a/src/ui/ui_gameinfo.c b/src/ui/ui_gameinfo.c
index 91dc800b..8b29399b 100644
--- a/src/ui/ui_gameinfo.c
+++ b/src/ui/ui_gameinfo.c
@@ -1,5 +1,19 @@
// Copyright (C) 1999-2000 Id Software, Inc.
//
+
+/*
+ * Portions Copyright (C) 2000-2001 Tim Angus
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
+ *
+ * This program 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.
+ */
+
//
// gameinfo.c
//
diff --git a/src/ui/ui_local.h b/src/ui/ui_local.h
index 68012040..c146ddb2 100644
--- a/src/ui/ui_local.h
+++ b/src/ui/ui_local.h
@@ -1,5 +1,19 @@
// Copyright (C) 1999-2000 Id Software, Inc.
//
+
+/*
+ * Portions Copyright (C) 2000-2001 Tim Angus
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
+ *
+ * This program 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.
+ */
+
#ifndef __UI_LOCAL_H__
#define __UI_LOCAL_H__
diff --git a/src/ui/ui_main.c b/src/ui/ui_main.c
index 0d545dfc..f2ee5ea0 100644
--- a/src/ui/ui_main.c
+++ b/src/ui/ui_main.c
@@ -1,5 +1,19 @@
// Copyright (C) 1999-2000 Id Software, Inc.
//
+
+/*
+ * Portions Copyright (C) 2000-2001 Tim Angus
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
+ *
+ * This program 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.
+ */
+
/*
=======================================================================
diff --git a/src/ui/ui_players.c b/src/ui/ui_players.c
index 05c25808..f8e6f982 100644
--- a/src/ui/ui_players.c
+++ b/src/ui/ui_players.c
@@ -1,5 +1,19 @@
// Copyright (C) 1999-2000 Id Software, Inc.
//
+
+/*
+ * Portions Copyright (C) 2000-2001 Tim Angus
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
+ *
+ * This program 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.
+ */
+
// ui_players.c
#include "ui_local.h"
diff --git a/src/ui/ui_public.h b/src/ui/ui_public.h
index 3f87ba75..1b560fcb 100644
--- a/src/ui/ui_public.h
+++ b/src/ui/ui_public.h
@@ -1,5 +1,19 @@
// Copyright (C) 1999-2000 Id Software, Inc.
//
+
+/*
+ * Portions Copyright (C) 2000-2001 Tim Angus
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
+ *
+ * This program 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.
+ */
+
#ifndef __UI_PUBLIC_H__
#define __UI_PUBLIC_H__
diff --git a/src/ui/ui_shared.c b/src/ui/ui_shared.c
index 67824064..c0ca8a01 100644
--- a/src/ui/ui_shared.c
+++ b/src/ui/ui_shared.c
@@ -1,6 +1,19 @@
//
// string allocation/managment
+/*
+ * Portions Copyright (C) 2000-2001 Tim Angus
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
+ *
+ * This program 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.
+ */
+
#include "ui_shared.h"
#define SCROLL_TIME_START 500
diff --git a/src/ui/ui_shared.h b/src/ui/ui_shared.h
index a32c2297..a84070cf 100644
--- a/src/ui/ui_shared.h
+++ b/src/ui/ui_shared.h
@@ -1,3 +1,16 @@
+/*
+ * Portions Copyright (C) 2000-2001 Tim Angus
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
+ *
+ * This program 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.
+ */
+
#ifndef __UI_SHARED_H
#define __UI_SHARED_H
diff --git a/src/ui/ui_syscalls.c b/src/ui/ui_syscalls.c
index 8bce0862..2cb5edc8 100644
--- a/src/ui/ui_syscalls.c
+++ b/src/ui/ui_syscalls.c
@@ -1,5 +1,19 @@
// Copyright (C) 1999-2000 Id Software, Inc.
//
+
+/*
+ * Portions Copyright (C) 2000-2001 Tim Angus
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the OSML - Open Source Modification License v1.0 as
+ * described in the file COPYING which is distributed with this source
+ * code.
+ *
+ * This program 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.
+ */
+
#include "ui_local.h"
// this file is only included when building a dll
@@ -369,4 +383,4 @@ qboolean trap_VerifyCDKey( const char *key, const char *chksum) {
return syscall( UI_VERIFY_CDKEY, key, chksum);
}
- \ No newline at end of file
+