Commit graph

8374 commits

Author SHA1 Message Date
Cornee Traas
6cb5496ae6 Add VS2012 support
Files are essentially just copied from the 2010 version with slight
tweaks, works without any warnings or errors.
2014-12-13 22:29:28 +01:00
Ben Payne
8d4679b2b7 Fix potential buffer overflows 2014-12-13 16:12:02 -05:00
Ben Payne
cadc390895 Fix leaked member var 2014-12-13 16:08:48 -05:00
Ben Payne
de7101dec2 Fix mismatched free
Memory was allocated with new on line 304
2014-12-13 16:08:47 -05:00
Ben Payne
98e79f3aec Fix uninitialized member vars 2014-12-13 16:08:47 -05:00
Ben Payne
50238fb2ac Casts are stronger than necessary 2014-12-13 16:08:46 -05:00
Ben Payne
dd297d4dc0 Fix buffer overflow 2014-12-13 16:08:38 -05:00
Anis
2db9aa52ef missing texture format.
To silence a console error on startup (OpenGL)
2014-12-13 15:11:13 +01:00
Areloch
fd186204a2 Fizes #945 2014-12-13 03:11:11 -06:00
LuisAntonRebollo
fe9c30b5bb Lowercase TSStatic fied names. 2014-12-12 22:41:08 +01:00
LuisAntonRebollo
4e936c2101 Merge pull request #1040 from BeamNG/fix_spaces_in_field
Fix spaces in TSStatic fied names.
2014-12-12 22:37:05 +01:00
LuisAntonRebollo
8f4c0ed95d Fix spaces in TSStatic fied names. 2014-12-12 22:36:08 +01:00
Bruno Gonzalez
046f4e4e2d Fix off-by-one error in cursor hiding/showing function
Incorrect API use according to msdn.

Source: http://msdn.microsoft.com/en-us/library/windows/desktop/ms648396%28v=vs.85%29.aspx
"cursor is displayed only if the display count is greater than or equal to 0"
2014-12-12 16:53:07 +01:00
Anis
1131bdd5ab Black screen fix
black screen wasn't properly fixed in certain situation.
Now it's fixed!
2014-12-12 15:27:49 +01:00
Daniel Buckmaster
763d178704 Merge pull request #1032 from eightyeight/issue-694
Fix a crash when change a material reclect cubemap
2014-12-12 21:49:41 +11:00
Daniel Buckmaster
4210c002bb Merge pull request #991 from Winterleaf/BitAlign-ServerQuery.cpp
Bit  Alignment of variables in serverQuery.cpp
2014-12-12 21:47:40 +11:00
Daniel Buckmaster
9fca02b2f8 Merge pull request #1017 from eightyeight/aiplayer-triggers-fix
AIPlayer trigger fix
2014-12-12 21:45:57 +11:00
Daniel Buckmaster
38f8c79b3e Merge pull request #1033 from eightyeight/guishapenamehud-maths-fix
Fix GuiShapeNameHud maths
2014-12-12 21:45:14 +11:00
Areloch
8518c85e80 PR for issue #748 2014-12-11 22:17:55 -06:00
Ben Payne
a3f4adacc3 Replace obsolete calling convention 2014-12-11 20:08:45 -05:00
Ben Payne
dc780ddcae Fix use-after-delete 2014-12-11 19:09:02 -05:00
Ben Payne
68b5e7b517 Fix more use-after-delete errors 2014-12-11 19:09:01 -05:00
Ben Payne
c50c88d071 Fix use-after-delete errors 2014-12-11 19:09:01 -05:00
Ben Payne
d97d44f66f Fix more misc uninitialized vars 2014-12-11 18:25:29 -05:00
Ben Payne
a10e6e99d4 Fix read past end of array 2014-12-11 18:22:14 -05:00
Ben Payne
d4b4320f45 More uninitialized variables 2014-12-11 18:06:24 -05:00
Ben Payne
2fc1ac4816 Fix uninit vars in gui 2014-12-11 17:25:02 -05:00
Ben Payne
81e7dafb94 Fix delete of malloc'ed memory 2014-12-11 17:24:40 -05:00
LuisAntonRebollo
0718875ac3 OpenGL Intel - Fix a error on DOF_DownSample_P.glsl. 2014-12-11 22:58:02 +01:00
Daniel Buckmaster
93fdcdecbe Compare to cosine of angle, not angle. 2014-12-11 12:30:48 +11:00
LuisAntonRebollo
6f975dd14a Fix a crash when change a material reclect cubemap. 2014-12-11 12:29:44 +11:00
LuisAntonRebollo
d000a1e7c5 OpenGL Intel - Workaround for warning spam or even crash with actual framebuffer code, remove when implemented TGL layer. 2014-12-11 01:20:39 +01:00
Anis
de82fbe0f9 Intel graphics bugfix
Explicit calls to hide and show menu bar on editing.
That fix the bug on Intel video card in OpenGL mode.
2014-12-10 15:30:36 +01:00
Daniel Buckmaster
27252b0864 Merge pull request #1019 from eightyeight/image-recoil-fix
Fix weapon image camera shake
2014-12-10 22:52:26 +11:00
James Urquhart
bfca94da5c Initialize mResetLocked too 2014-12-10 11:37:50 +00:00
Daniel Buckmaster
7004ec627e Use find instead of [] and call StringTable->insert less. 2014-12-10 14:04:26 +11:00
LuisAntonRebollo
b0efd865d9 Use factor of ambient light with camera direction for allow normals on shadowed surfaces. 2014-12-09 19:46:06 -05:00
James Urquhart
82fd1794e6 Fix issue where console stack values were getting overwritten inside a C++ function 2014-12-10 00:42:06 +00:00
LuisAntonRebollo
d87994ec37 Merge pull request #1011 from BeamNG/fix_opengl_circular_buffer
Fix GLCircularVolatileBuffer incorrect binding.
2014-12-10 00:09:00 +01:00
LuisAntonRebollo
5e4a0fbaa1 Merge pull request #1005 from BeamNG/revert_terrain_opengl
Revert terrain opengl
2014-12-10 00:08:35 +01:00
LuisAntonRebollo
d97bccb798 Fix AMD render problem with missed meshes. 2014-12-09 17:34:16 -05:00
LuisAntonRebollo
190f68b998 Fix SkatterSky flare occlusion. 2014-12-09 23:34:21 +11:00
Daniel Buckmaster
116276a105 Tweaks so I'm happy with it.
* Change #define usage
 * Fix tabs
2014-12-08 10:20:38 +11:00
Daniel Buckmaster
9622f93d05 Fix weapon image camera shake. 2014-12-07 20:59:17 +11:00
Daniel Buckmaster
a928d142f7 Made some tweaks so I'm happy with it.
* Removed #defines
 * Fall back to using visible distance if ghost distance is not used
 * Removed ghost distance from level files as it will default
 * Renamed mConnectionVisibleDistance for consistency
2014-12-07 19:14:06 +11:00
Daniel Buckmaster
e0436efc21 Merge pull request #910 from Winterleaf/StaticShapeAlphaLod
Added distance fading to TSStatic objects.
2014-12-07 18:15:13 +11:00
Daniel Buckmaster
04df62ebe5 AIPlayer trigger fix as in #1007. 2014-12-07 17:14:37 +11:00
Daniel Buckmaster
ca287f3308 Merge pull request #997 from Winterleaf/Fix-PostEffects
This just adds some console spam if the PostEffect Texture isn't found. ...
2014-12-07 17:10:31 +11:00
Daniel Buckmaster
6338b8cc82 Merge pull request #1010 from Azaezel/eyesFront
checkInFoV correction
2014-12-07 16:33:25 +11:00
Daniel Buckmaster
2dd23e459a Merge pull request #1012 from eightyeight/singleshot-fix
Fix APlayer::singleShot
2014-12-07 15:30:32 +11:00