forsaken.git
8 years agocleanup: void functions should not return a value master
Daniel Aquino [Tue, 3 Sep 2013 22:02:04 +0000 (18:02 -0400)]
cleanup: void functions should not return a value

9 years agomakefile: some system libs need -lm
Daniel Aquino [Fri, 9 Aug 2013 21:55:39 +0000 (17:55 -0400)]
makefile: some system libs need -lm

Hence I'm moving it to the end of the LIBS line since not all of them
(in this case openal) include -lm in their pkg-config file.

9 years agowhitespace: remove white space at end of line
Daniel Aquino [Fri, 9 Aug 2013 21:53:29 +0000 (17:53 -0400)]
whitespace: remove white space at end of line

9 years agomakefile: add -ldl as default linker option
Daniel Aquino [Thu, 8 Aug 2013 23:20:33 +0000 (19:20 -0400)]
makefile: add -ldl as default linker option

Apparently now on Ubuntu 13.x (?) -ldl is required to compile.

This may be because it was automatically included previously with some
of gcc's default libs?

9 years agomakefile: Invert check for lua vs lua5.1
Daniel Aquino [Thu, 8 Aug 2013 23:17:53 +0000 (19:17 -0400)]
makefile: Invert check for lua vs lua5.1

Apparently ubuntu 13.x (?) installs lua5.1 by default for other packages
so checking for lua5.1 picks up the system installation by accident.

Instead now we check for lua first and then fall back to lua5.1 instead.

9 years agoIgnoring common forsaken-libs folders.
Daniel Aquino [Tue, 19 Mar 2013 21:52:53 +0000 (17:52 -0400)]
Ignoring common forsaken-libs folders.

Normally people may name forsaken-libs clones as
libs, unix32/64, or mingw etc..

9 years agoIgnoring forsaken game directories.
Daniel Aquino [Mon, 18 Mar 2013 01:34:15 +0000 (21:34 -0400)]
Ignoring forsaken game directories.

In case people want to use this folder as their game folder.

They have the option to checkout forsaken-data here since it has
scripts folder here too and create all the normal forsaken folders
such as:

- logs
- pilots
- savegame
- data

9 years agoIgnoring build artifact files.
Daniel Aquino [Sun, 17 Mar 2013 20:39:12 +0000 (16:39 -0400)]
Ignoring build artifact files.

9 years agoIgnoring *.sh so you can have your own scripts.
Daniel Aquino [Sun, 17 Mar 2013 17:22:02 +0000 (13:22 -0400)]
Ignoring *.sh so you can have your own scripts.

9 years agoAdding a new readme to the project.
Daniel Aquino [Sat, 16 Mar 2013 03:47:36 +0000 (23:47 -0400)]
Adding a new readme to the project.

9 years agoAdding code coverage notice to the license.
Daniel Aquino [Sat, 16 Mar 2013 03:46:42 +0000 (23:46 -0400)]
Adding code coverage notice to the license.

9 years agoAdding GPLv2 LICENSE file to the repo.
Daniel Aquino [Sat, 16 Mar 2013 02:57:38 +0000 (22:57 -0400)]
Adding GPLv2 LICENSE file to the repo.

9 years agoRemoving old src/README file.
Daniel Aquino [Sat, 16 Mar 2013 02:15:06 +0000 (22:15 -0400)]
Removing old src/README file.

For details on building see the forsaken-libs folder.

9 years agoMoving all src files up to top level folder.
Daniel Aquino [Sat, 16 Mar 2013 02:14:07 +0000 (22:14 -0400)]
Moving all src files up to top level folder.

This repo is moving towards src only.

9 years agoRemoving skeleton template folder.
Daniel Aquino [Sat, 16 Mar 2013 02:11:58 +0000 (22:11 -0400)]
Removing skeleton template folder.

This repo is moving towards src only.

9 years agoMoving lua scripts to src folder.
Daniel Aquino [Sat, 16 Mar 2013 02:11:31 +0000 (22:11 -0400)]
Moving lua scripts to src folder.

9 years agoRemoving old readme files.
Daniel Aquino [Sat, 16 Mar 2013 02:08:15 +0000 (22:08 -0400)]
Removing old readme files.

9 years agofixing FSReleaseRenderObject() for GL1; should have been calling free() not glDeleteB...
Daniel Aquino [Sun, 6 Jan 2013 00:34:33 +0000 (00:34 +0000)]
fixing FSReleaseRenderObject() for GL1; should have been calling free() not glDeleteBuffers()

git-svn-id: svn://fly.thruhere.net/forsaken@2546 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agousing glGenerateMipmap instead of gluBuild2DMipmaps like gl1.c use to since its requi...
Daniel Aquino [Sun, 6 Jan 2013 00:30:51 +0000 (00:30 +0000)]
using glGenerateMipmap instead of gluBuild2DMipmaps like gl1.c use to since its required for mingw

git-svn-id: svn://fly.thruhere.net/forsaken@2545 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agocommenting out chunks of code for GL > 1 because they apparently cant compile using...
Daniel Aquino [Sun, 6 Jan 2013 00:27:32 +0000 (00:27 +0000)]
commenting out chunks of code for GL > 1 because they apparently cant compile using mingw

git-svn-id: svn://fly.thruhere.net/forsaken@2544 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agomoving notes about network security/bugs/fixes/improvements out of smasher.c and...
Daniel Aquino [Sat, 5 Jan 2013 18:05:19 +0000 (18:05 +0000)]
moving notes about network security/bugs/fixes/improvements out of smasher.c and into github issue tracker

git-svn-id: svn://fly.thruhere.net/forsaken@2532 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agoremoving all site/skeleton docs as they have been all added to github
Daniel Aquino [Sat, 5 Jan 2013 07:45:31 +0000 (07:45 +0000)]
removing all site/skeleton docs as they have been all added to github

git-svn-id: svn://fly.thruhere.net/forsaken@2529 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agoadding a function writen by lion that determines if an address belongs to a private nat
Daniel Aquino [Thu, 3 Jan 2013 20:31:34 +0000 (20:31 +0000)]
adding a function writen by lion that determines if an address belongs to a private nat

git-svn-id: svn://fly.thruhere.net/forsaken@2527 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agoAdding support for data/textures/original folder and an option to enable it; currentl...
Daniel Aquino [Sat, 29 Dec 2012 17:46:18 +0000 (17:46 +0000)]
Adding support for data/textures/original folder and an option to enable it; currently only works for level textures

git-svn-id: svn://fly.thruhere.net/forsaken@2521 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agorefactoring bot code
Silence [Fri, 28 Dec 2012 03:05:51 +0000 (03:05 +0000)]
refactoring bot code

git-svn-id: svn://fly.thruhere.net/forsaken@2520 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agoprinting generated shader to debug output
Daniel Aquino [Tue, 25 Dec 2012 15:44:24 +0000 (15:44 +0000)]
printing generated shader to debug output

git-svn-id: svn://fly.thruhere.net/forsaken@2519 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agoonly setup the default shaders if GL > 1
Daniel Aquino [Mon, 24 Dec 2012 19:51:57 +0000 (19:51 +0000)]
only setup the default shaders if GL > 1

git-svn-id: svn://fly.thruhere.net/forsaken@2518 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agoadding some conditionals to support glsl version 1.20 for gl2; mostly rendering now...
Daniel Aquino [Mon, 24 Dec 2012 09:45:37 +0000 (09:45 +0000)]
adding some conditionals to support glsl version 1.20 for gl2; mostly rendering now minus orthographic support which if uncommented will cause black screen

git-svn-id: svn://fly.thruhere.net/forsaken@2517 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agowrapping long lines so it fits width better
Daniel Aquino [Mon, 24 Dec 2012 08:18:33 +0000 (08:18 +0000)]
wrapping long lines so it fits width better

git-svn-id: svn://fly.thruhere.net/forsaken@2516 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agomoving everything thats shared between render_gl* into render_gl_shared*; merged...
Daniel Aquino [Mon, 24 Dec 2012 08:13:33 +0000 (08:13 +0000)]
moving everything thats shared between render_gl* into render_gl_shared*; merged functions so they work for all gl versions

git-svn-id: svn://fly.thruhere.net/forsaken@2515 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agochanging makefile to use SDL=N which is much easier
Daniel Aquino [Mon, 24 Dec 2012 08:08:54 +0000 (08:08 +0000)]
changing makefile to use SDL=N which is much easier

git-svn-id: svn://fly.thruhere.net/forsaken@2514 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agolocking joining screen to 10fps to stop tearing on wine/osx and potentionally other...
Daniel Aquino [Sun, 23 Dec 2012 20:56:21 +0000 (20:56 +0000)]
locking joining screen to 10fps to stop tearing on wine/osx and potentionally other systems

git-svn-id: svn://fly.thruhere.net/forsaken@2513 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agofixing the target-computer feature; it should restore alpha state back to normal...
Daniel Aquino [Sun, 23 Dec 2012 20:48:39 +0000 (20:48 +0000)]
fixing the target-computer feature; it should restore alpha state back to normal and it doesnt need to touch the viewport/projection matrix anymore these days

git-svn-id: svn://fly.thruhere.net/forsaken@2512 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agomoving DispHUDNames() and DispUntriggeredNMEs() earlier up in the rendering chain...
Daniel Aquino [Sun, 23 Dec 2012 20:24:08 +0000 (20:24 +0000)]
moving DispHUDNames() and DispUntriggeredNMEs() earlier up in the rendering chain so they work properly

git-svn-id: svn://fly.thruhere.net/forsaken@2511 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agoadding NetworkGameUpdate() back to MainGame() which was mistakingly removed
Daniel Aquino [Sun, 23 Dec 2012 18:57:54 +0000 (18:57 +0000)]
adding NetworkGameUpdate() back to MainGame() which was mistakingly removed

git-svn-id: svn://fly.thruhere.net/forsaken@2509 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agoadding default `return true` to RenderCurrentCameraWithMainGameMenu
Daniel Aquino [Sun, 23 Dec 2012 18:33:45 +0000 (18:33 +0000)]
adding default `return true` to RenderCurrentCameraWithMainGameMenu

git-svn-id: svn://fly.thruhere.net/forsaken@2508 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agoadding default `return true` to RenderCurrentMenu
Daniel Aquino [Sun, 23 Dec 2012 18:26:39 +0000 (18:26 +0000)]
adding default `return true` to RenderCurrentMenu

git-svn-id: svn://fly.thruhere.net/forsaken@2507 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agoadding render_gl2.c which allows for shader based rendering on gl 2.1
Daniel Aquino [Sat, 22 Dec 2012 22:21:05 +0000 (22:21 +0000)]
adding render_gl2.c which allows for shader based rendering on gl 2.1

git-svn-id: svn://fly.thruhere.net/forsaken@2506 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agomoving render_opengl.c to render_gl1.c to matches the version number we use for it
Daniel Aquino [Sat, 22 Dec 2012 22:19:37 +0000 (22:19 +0000)]
moving render_opengl.c to render_gl1.c to matches the version number we use for it

git-svn-id: svn://fly.thruhere.net/forsaken@2505 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agoadding return true to the end of the functions
Daniel Aquino [Sat, 22 Dec 2012 22:10:37 +0000 (22:10 +0000)]
adding return true to the end of the functions

git-svn-id: svn://fly.thruhere.net/forsaken@2504 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agoadding some more debug output for when AppInit or sdl_init_video fails
Daniel Aquino [Sat, 22 Dec 2012 22:09:54 +0000 (22:09 +0000)]
adding some more debug output for when AppInit or sdl_init_video fails

git-svn-id: svn://fly.thruhere.net/forsaken@2503 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agoconditionally commenting out code that tries to use glGetStringi on osx for gl3 since...
Daniel Aquino [Sat, 22 Dec 2012 22:00:15 +0000 (22:00 +0000)]
conditionally commenting out code that tries to use glGetStringi on osx for gl3 since the drivers have a bug that will cause to return an invalid pointer

git-svn-id: svn://fly.thruhere.net/forsaken@2502 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agoadding some more checks and returning false up the chain so the game quits from rende...
Daniel Aquino [Sat, 22 Dec 2012 21:35:33 +0000 (21:35 +0000)]
adding some more checks and returning false up the chain so the game quits from render_gl3.c

git-svn-id: svn://fly.thruhere.net/forsaken@2501 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agochanging everything to use `ifdef GL` and `if GL ==` instead of `ifdef OPENGL[123]`
Daniel Aquino [Sat, 22 Dec 2012 21:19:22 +0000 (21:19 +0000)]
changing everything to use `ifdef GL` and `if GL ==` instead of `ifdef OPENGL[123]`

git-svn-id: svn://fly.thruhere.net/forsaken@2500 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agomoving prototypes for main_sdl.c into main_sdl.h
Daniel Aquino [Sat, 22 Dec 2012 21:02:23 +0000 (21:02 +0000)]
moving prototypes for main_sdl.c into main_sdl.h

git-svn-id: svn://fly.thruhere.net/forsaken@2499 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agoremoving extra argument given to glVertexAttribPointer which shouldnt have been there
Daniel Aquino [Sat, 22 Dec 2012 20:54:01 +0000 (20:54 +0000)]
removing extra argument given to glVertexAttribPointer which shouldnt have been there

git-svn-id: svn://fly.thruhere.net/forsaken@2498 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agomoving the task of flipping the buffers to main_sdl.c
Daniel Aquino [Sat, 22 Dec 2012 20:52:07 +0000 (20:52 +0000)]
moving the task of flipping the buffers to main_sdl.c

git-svn-id: svn://fly.thruhere.net/forsaken@2497 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agoadding sdl2 support with optional gl3.2 context
Daniel Aquino [Sat, 22 Dec 2012 20:35:24 +0000 (20:35 +0000)]
adding sdl2 support with optional gl3.2 context

git-svn-id: svn://fly.thruhere.net/forsaken@2496 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agothese lines should only be enabled with NEW_LIGHTING
Daniel Aquino [Sat, 22 Dec 2012 20:35:01 +0000 (20:35 +0000)]
these lines should only be enabled with NEW_LIGHTING

git-svn-id: svn://fly.thruhere.net/forsaken@2495 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agoadding return true since it seems to default to true/false differently on different...
Daniel Aquino [Thu, 20 Dec 2012 03:20:22 +0000 (03:20 +0000)]
adding return true since it seems to default to true/false differently on different systems

git-svn-id: svn://fly.thruhere.net/forsaken@2494 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agofixing bug causing single/multiplayer to crash
Silence [Tue, 18 Dec 2012 22:29:33 +0000 (22:29 +0000)]
fixing bug causing single/multiplayer to crash

git-svn-id: svn://fly.thruhere.net/forsaken@2493 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agofixing the JustExitedMenu flag so you dont get stuck in the menu
Daniel Aquino [Sat, 15 Dec 2012 20:14:58 +0000 (20:14 +0000)]
fixing the JustExitedMenu flag so you dont get stuck in the menu

git-svn-id: svn://fly.thruhere.net/forsaken@2492 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agomoving demo related code out of MainGame() and into its own MainGameDemoRoutines()
Daniel Aquino [Fri, 14 Dec 2012 15:27:51 +0000 (15:27 +0000)]
moving demo related code out of MainGame() and into its own MainGameDemoRoutines()

git-svn-id: svn://fly.thruhere.net/forsaken@2490 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agosplitting out rendering from MainGame() into its own MainGameRender()
Daniel Aquino [Fri, 14 Dec 2012 04:20:51 +0000 (04:20 +0000)]
splitting out rendering from MainGame() into its own MainGameRender()

git-svn-id: svn://fly.thruhere.net/forsaken@2489 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agofixing copy paste fail from last commit
Daniel Aquino [Fri, 14 Dec 2012 04:13:37 +0000 (04:13 +0000)]
fixing copy paste fail from last commit

git-svn-id: svn://fly.thruhere.net/forsaken@2488 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agomoving out stretched-screen-effect from MainGame into its own function SetFOVBasedOnS...
Daniel Aquino [Fri, 14 Dec 2012 04:13:06 +0000 (04:13 +0000)]
moving out stretched-screen-effect from MainGame into its own function SetFOVBasedOnShipSpeed()

git-svn-id: svn://fly.thruhere.net/forsaken@2487 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agoremoving typo that created duplicate function
Daniel Aquino [Fri, 14 Dec 2012 04:08:31 +0000 (04:08 +0000)]
removing typo that created duplicate function

git-svn-id: svn://fly.thruhere.net/forsaken@2486 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agomoving all rendering related functions above FSEndScene() and above the comment the...
Daniel Aquino [Fri, 14 Dec 2012 04:08:03 +0000 (04:08 +0000)]
moving all rendering related functions above FSEndScene() and above the comment the says "done with rendering" and grouping up menu routines

git-svn-id: svn://fly.thruhere.net/forsaken@2485 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agosplitting up menu rendering from menu processing so we can easily call rendering...
Daniel Aquino [Fri, 14 Dec 2012 04:04:40 +0000 (04:04 +0000)]
splitting up menu rendering from menu processing so we can easily call rendering multiple times in stereo mode

git-svn-id: svn://fly.thruhere.net/forsaken@2484 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agoonly calling 3d render in 3d mode
Daniel Aquino [Fri, 14 Dec 2012 03:31:36 +0000 (03:31 +0000)]
only calling 3d render in 3d mode

git-svn-id: svn://fly.thruhere.net/forsaken@2483 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agolittle comment for people searching for this function later
Daniel Aquino [Fri, 14 Dec 2012 03:30:47 +0000 (03:30 +0000)]
little comment for people searching for this function later

git-svn-id: svn://fly.thruhere.net/forsaken@2482 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agowe dont want to call RenderMainCamera2dPolys() again here and the other lines above...
Daniel Aquino [Fri, 14 Dec 2012 03:25:59 +0000 (03:25 +0000)]
we dont want to call RenderMainCamera2dPolys() again here and the other lines above it arent needed

git-svn-id: svn://fly.thruhere.net/forsaken@2481 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years ago3d render function should reset viewport before exit
Daniel Aquino [Fri, 14 Dec 2012 03:24:50 +0000 (03:24 +0000)]
3d render function should reset viewport before exit

git-svn-id: svn://fly.thruhere.net/forsaken@2480 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agomoving RenderMainCamera2dPolys() to RenderCurrentCameraWithMainGameMenu() so the...
Daniel Aquino [Fri, 14 Dec 2012 03:23:41 +0000 (03:23 +0000)]
moving RenderMainCamera2dPolys() to RenderCurrentCameraWithMainGameMenu() so the in game text menu works with 3d; It also has no need to set viewport or view

git-svn-id: svn://fly.thruhere.net/forsaken@2479 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agomaking sure that MenuProcess() is only called once time each frame otherwise in stere...
Daniel Aquino [Sun, 9 Dec 2012 21:12:46 +0000 (21:12 +0000)]
making sure that MenuProcess() is only called once time each frame otherwise in stereo mode each key press would double

git-svn-id: svn://fly.thruhere.net/forsaken@2477 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agoPulled out the menu drawing from MainGame() into MainGameMenu() so that it could...
Daniel Aquino [Sun, 9 Dec 2012 21:01:42 +0000 (21:01 +0000)]
Pulled out the menu drawing from MainGame() into MainGameMenu() so that it could be drawn for each eye; RenderCurrentCameraInStereo() now modifies viewport as well as CurrentCamera which is what cross hair and other things use but arguably they should be using CurrentCamera.Viewport instead of whole screen viewport

git-svn-id: svn://fly.thruhere.net/forsaken@2476 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agoreset values CurrentCamera settings back to default after RenderCurrentCameraInStereo...
Daniel Aquino [Sun, 9 Dec 2012 20:20:23 +0000 (20:20 +0000)]
reset values CurrentCamera settings back to default after RenderCurrentCameraInStereo() is finished

git-svn-id: svn://fly.thruhere.net/forsaken@2475 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agoremoved FSClearBlack() from DisplayTitle() because it clears the entire screen erasin...
Daniel Aquino [Sun, 9 Dec 2012 20:07:33 +0000 (20:07 +0000)]
removed FSClearBlack() from DisplayTitle() because it clears the entire screen erasing the left eye rendering in 3d mode and since ClearBuffers() already does that properly for only the current view port; wrapping RenderCurrentMenu() in RenderCurrentCameraInStereo() to make the main menu 3d

git-svn-id: svn://fly.thruhere.net/forsaken@2474 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agoremove SetFOV and FSSetProjection() from RenderCurrentCameraInStereo() because settin...
Daniel Aquino [Sun, 9 Dec 2012 20:05:46 +0000 (20:05 +0000)]
remove SetFOV and FSSetProjection() from RenderCurrentCameraInStereo() because setting them was redundant an would break menu rendering

git-svn-id: svn://fly.thruhere.net/forsaken@2473 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agoReplacing hard coded RenderCurrentCamera() in RenderCurrentCameraInStereo() with...
Daniel Aquino [Sun, 9 Dec 2012 19:38:32 +0000 (19:38 +0000)]
Replacing hard coded RenderCurrentCamera() in RenderCurrentCameraInStereo() with a function pointer argument so the caller can decide which scene renderer to use

git-svn-id: svn://fly.thruhere.net/forsaken@2472 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agosplit out the stereo rendering code from MainGame() into its own RenderCurrentCameraI...
Daniel Aquino [Sun, 9 Dec 2012 19:22:03 +0000 (19:22 +0000)]
split out the stereo rendering code from MainGame() into its own RenderCurrentCameraInStereo() function

git-svn-id: svn://fly.thruhere.net/forsaken@2471 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agorenaming remaining _Bool to bool in header files
Daniel Aquino [Sun, 9 Dec 2012 19:15:47 +0000 (19:15 +0000)]
renaming remaining _Bool to bool in header files

git-svn-id: svn://fly.thruhere.net/forsaken@2470 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agopulled the menu scene rendering out of DisplayMenu into its own RenderCurrentMenu...
Daniel Aquino [Sun, 9 Dec 2012 19:14:34 +0000 (19:14 +0000)]
pulled the menu scene rendering out of DisplayMenu into its own RenderCurrentMenu function

git-svn-id: svn://fly.thruhere.net/forsaken@2469 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agoAdding split vertical/horizontal screen stereo mode for 3d tvs that support it; also...
Daniel Aquino [Sun, 9 Dec 2012 18:59:06 +0000 (18:59 +0000)]
Adding split vertical/horizontal screen stereo mode for 3d tvs that support it; also moved all stereo related options under render_into_t in render.h

git-svn-id: svn://fly.thruhere.net/forsaken@2468 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agoforgot to svn-add oct2.h earlier
Daniel Aquino [Sun, 4 Nov 2012 16:52:54 +0000 (16:52 +0000)]
forgot to svn-add oct2.h earlier

git-svn-id: svn://fly.thruhere.net/forsaken@2467 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agomoved ShortLevelNames[] and NewLevelNum to a new oct2.h file and defining a MAX_SHORT...
Daniel Aquino [Sun, 4 Nov 2012 06:37:31 +0000 (06:37 +0000)]
moved ShortLevelNames[] and NewLevelNum to a new oct2.h file and defining a MAX_SHORT_LEVEL_NAME instead of hardcoded 32 everywhere

git-svn-id: svn://fly.thruhere.net/forsaken@2466 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agosending update right away when level name changes
Daniel Aquino [Sun, 4 Nov 2012 06:17:56 +0000 (06:17 +0000)]
sending update right away when level name changes

git-svn-id: svn://fly.thruhere.net/forsaken@2465 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agosending level name in tracker message
Daniel Aquino [Sun, 4 Nov 2012 06:17:40 +0000 (06:17 +0000)]
sending level name in tracker message

git-svn-id: svn://fly.thruhere.net/forsaken@2464 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agoupdating tracker to send update right away when a player joins/leaves
Daniel Aquino [Sun, 4 Nov 2012 05:00:09 +0000 (05:00 +0000)]
updating tracker to send update right away when a player joins/leaves

git-svn-id: svn://fly.thruhere.net/forsaken@2463 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agoprinting tracker messages to debug log
Daniel Aquino [Sun, 4 Nov 2012 04:59:41 +0000 (04:59 +0000)]
printing tracker messages to debug log

git-svn-id: svn://fly.thruhere.net/forsaken@2462 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agobug fix; fixing invalid index into GameStatus[] during MSG_HEREIAM
Daniel Aquino [Sun, 4 Nov 2012 01:37:48 +0000 (01:37 +0000)]
bug fix; fixing invalid index into GameStatus[] during MSG_HEREIAM

git-svn-id: svn://fly.thruhere.net/forsaken@2461 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agobool maps to _Bool which is nicer to look at
Daniel Aquino [Thu, 1 Nov 2012 16:21:01 +0000 (16:21 +0000)]
bool maps to _Bool which is nicer to look at

git-svn-id: svn://fly.thruhere.net/forsaken@2460 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agobug fix; protecting multiple locations from indexing arrays with Current_Camera_View...
Daniel Aquino [Thu, 1 Nov 2012 04:24:26 +0000 (04:24 +0000)]
bug fix; protecting multiple locations from indexing arrays with Current_Camera_View when it is set to -1 (but for a uint that turns into 255) during rear/remote camera rendering; only some functions under RenderCurrentCamera needed the extra checks; also now using INVALID_CAMERA_VIEW instead of hard coding to -1; added a CAMERA_VIEW_IS_VALID macro as well

git-svn-id: svn://fly.thruhere.net/forsaken@2459 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agomoving definition of Current_Camera_View to one header
Daniel Aquino [Thu, 1 Nov 2012 01:40:18 +0000 (01:40 +0000)]
moving definition of Current_Camera_View to one header

git-svn-id: svn://fly.thruhere.net/forsaken@2457 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agothese variables are signed not unsigned so comparison was failing allowing a -1 index...
Daniel Aquino [Wed, 17 Oct 2012 06:21:56 +0000 (06:21 +0000)]
these variables are signed not unsigned so comparison was failing allowing a -1 index lookup on array

git-svn-id: svn://fly.thruhere.net/forsaken@2456 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agobug fix - replacing sprintf with snprintf to prevent overflow
Daniel Aquino [Tue, 16 Oct 2012 03:46:24 +0000 (03:46 +0000)]
bug fix - replacing sprintf with snprintf to prevent overflow

git-svn-id: svn://fly.thruhere.net/forsaken@2455 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agobug/security fix for long status message - should be sent by host only - using msg...
Daniel Aquino [Tue, 16 Oct 2012 03:18:55 +0000 (03:18 +0000)]
bug/security fix for long status message - should be sent by host only - using msg->WhoIAm instead of msg->status->WhoIAM since its sanity/security checked at the top of EvaluateMessage()

git-svn-id: svn://fly.thruhere.net/forsaken@2454 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agomoved smasher.c Makefile to use pkg-config
Daniel Aquino [Sun, 14 Oct 2012 21:20:56 +0000 (21:20 +0000)]
moved smasher.c Makefile to use pkg-config

git-svn-id: svn://fly.thruhere.net/forsaken@2453 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agobug fix while indexing Ships[] - if joining failed then WhoIAm may not be < MAX_PLAYERS
Daniel Aquino [Sun, 14 Oct 2012 18:54:17 +0000 (18:54 +0000)]
bug fix while indexing Ships[] - if joining failed then WhoIAm may not be < MAX_PLAYERS

git-svn-id: svn://fly.thruhere.net/forsaken@2452 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agodefining Ships[] in networking.h instead of extern everywhere else
Daniel Aquino [Sun, 14 Oct 2012 18:45:55 +0000 (18:45 +0000)]
defining Ships[] in networking.h instead of extern everywhere else

git-svn-id: svn://fly.thruhere.net/forsaken@2451 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agobug fix - making sure key_char() returns null terminated string.
Daniel Aquino [Sun, 14 Oct 2012 17:15:54 +0000 (17:15 +0000)]
bug fix - making sure key_char() returns null terminated string.

git-svn-id: svn://fly.thruhere.net/forsaken@2450 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agocleaning up this code a little bit
Daniel Aquino [Sun, 14 Oct 2012 17:12:21 +0000 (17:12 +0000)]
cleaning up this code a little bit

git-svn-id: svn://fly.thruhere.net/forsaken@2449 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agoFix array length of vkey_map, which did not include the last entry, KEY_MAP_LAST.
Pim Goossens [Wed, 10 Oct 2012 11:20:00 +0000 (11:20 +0000)]
Fix array length of vkey_map, which did not include the last entry, KEY_MAP_LAST.

git-svn-id: svn://fly.thruhere.net/forsaken@2448 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agoadding xyz names to NORMAL so its just like a VERT, VECTOR or FACE
Daniel Aquino [Sun, 16 Sep 2012 19:09:02 +0000 (19:09 +0000)]
adding xyz names to NORMAL so its just like a VERT, VECTOR or FACE

git-svn-id: svn://fly.thruhere.net/forsaken@2447 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agoremoving rounding hull
Silence [Sat, 15 Sep 2012 23:53:11 +0000 (23:53 +0000)]
removing rounding hull

git-svn-id: svn://fly.thruhere.net/forsaken@2446 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agoreverting 2443 because it broke shield regeneration in singleplayer
Silence [Fri, 14 Sep 2012 20:48:58 +0000 (20:48 +0000)]
reverting 2443 because it broke shield regeneration in singleplayer

git-svn-id: svn://fly.thruhere.net/forsaken@2445 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agohopefully fixing a bug in the damage calculation resulting in the ship flashing when...
Silence [Wed, 12 Sep 2012 20:21:00 +0000 (20:21 +0000)]
hopefully fixing a bug in the damage calculation resulting in the ship flashing when being hit but not taking damage

git-svn-id: svn://fly.thruhere.net/forsaken@2443 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agoreset gravgon back to original
Silence [Wed, 12 Sep 2012 19:19:18 +0000 (19:19 +0000)]
reset gravgon back to original

git-svn-id: svn://fly.thruhere.net/forsaken@2442 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agohalved the size of the countdown timer and made it clearer
Silence [Sun, 9 Sep 2012 00:17:19 +0000 (00:17 +0000)]
halved the size of the countdown timer and made it clearer

git-svn-id: svn://fly.thruhere.net/forsaken@2441 1361c5d3-c82f-4d94-b015-8aedb5f389d9

9 years agodoubling the speed of gravgons so they are as fast as mfrl - lets see how it works out
Silence [Fri, 7 Sep 2012 19:11:36 +0000 (19:11 +0000)]
doubling the speed of gravgons so they are as fast as mfrl - lets see how it works out

git-svn-id: svn://fly.thruhere.net/forsaken@2440 1361c5d3-c82f-4d94-b015-8aedb5f389d9