Commit graph

2866 commits

Author SHA1 Message Date
Areloch
726790bacf Merge pull request #2001 from pacomont/Let's_appling_Camera_FX_when_mount_on_driver_position
Why not apply Camera FX on vehicle driver position?
2017-05-15 00:58:11 -05:00
Areloch
f5347f95bf Merge pull request #2002 from OTHGMars/VolFogLeak
VolumetricFog memory leak fix
2017-05-15 00:45:43 -05:00
Areloch
b0fe71fa2f Merge pull request #2007 from OTHGMars/DrawTextNFix
BugFix for GFXDrawUtil::drawTextN()
2017-05-14 17:47:29 -05:00
OTHGMars
77da6900a8 Prevents GFXDrawUtil::drawTextN() from drawing one character more than requested if in_string has more than n characters. 2017-05-12 18:54:01 -04:00
Areloch
c460868814 Merge pull request #2003 from Areloch/FullPrepassDeferredRename
Prepass->Deferred rename for full template
2017-05-08 19:13:34 -05:00
Areloch
90e7976496 Does the prepass->deferred rename for the full template as well to make it play nice while we prep for the swap over to the BaseGame template. 2017-05-08 18:33:14 -05:00
Areloch
63841cacb7 Merge pull request #1994 from viva64/pvs-studio-fixes
Checking Torque3D with PVS-Studio static analyzer
2017-05-08 18:21:02 -05:00
OTHGMars
3658f1587d Fixes a memory leak in the VolumetricFog object and corrects an array alloc mismatch. Once objects were being deleted on the client, the SAFE_DELETE(z_buf) needed to be removed from the destructor. This was causing a runtime crash (release only) because z_buf was still registered with the GFX device. 2017-05-06 20:57:10 -04:00
Francisco Montañés García
a316391ba0 Apply Camera FX on vehicle driver position. 2017-05-02 17:17:33 +02:00
Areloch
a6710285db Merge pull request #1982 from aaravamudan2014/development
Added gui functionality for vehicle re-mapping as per #950
2017-04-28 21:48:23 -05:00
Phillip Khandeliants
b741d9c1c2 Fixed V570: Variable is assigned to itself
The uninitialized variable 'box' is assigned to itself. Judging from the fact that this is a copy constructor, I think that it is necessary to store in the 'box' the value of 'cv.box'
2017-04-27 12:25:01 +03:00
Phillip Khandeliants
172391e1d3 Fixed V610: Undefined behavior
In an arithmetic expression, all the variables whose values can be represented with type 'int' will be promoted to this type. Therefore, the result of the '~mask' expression is a negative number. By the C++ standard, shifting a negative number to the left leads to an undefined behavior.
2017-04-27 12:13:05 +03:00
Phillip Khandeliants
c0f3c4e2f5 Fixed V547: Bad C-string comparsion
This comparison of a string to an empty is meaningless, since in fact two pointers will be compared and the expression will always be false.
2017-04-27 12:03:44 +03:00
Phillip Khandeliants
ffb943f3bb Fixed V547: Expression is always false
'ov_read' function returns a signed long, that is stored in an unsigned integer 'bytesRead'. Comparsion 'bytesRead < 0' doesn't make sense, since an unsigned number >= 0.
2017-04-27 11:29:03 +03:00
Phillip Khandeliants
32c5ada995 Fixed V591: Non-void function should return a value
If there is needed to prevent the copying of the object, then there is no need to provide the definition of the copy constructor and the assignment operator, because the member functions and friendly functions can still call them. If the code is compiled by a compiler with support for the C++11 standard, you can delete them using the keyword 'delete'
2017-04-27 10:33:31 +03:00
Areloch
1b95038fc5 Merge pull request #1990 from AlexBarys/AITurretClearIgnoreList
Ai turret clear ignore list
2017-04-26 23:57:01 -05:00
Areloch
d98752672a Merge branch 'development' into AITurretClearIgnoreList 2017-04-26 23:56:33 -05:00
Areloch
6a34118ca3 Merge pull request #1992 from AlexBarys/DecalPropertiesNamedWrong
Fixed old names of decal properties
2017-04-26 23:54:09 -05:00
Areloch
8a072cc2e3 Merge pull request #1993 from AlexBarys/dragCoefficientMisspelled
Drag coefficient misspelled
2017-04-26 23:52:58 -05:00
Areloch
0637f39928 Merge pull request #1988 from DTFuchs/Redundant-Check-GetTrailingNumber
Better bug fix for #1738 (str.cpp)
2017-04-26 23:27:17 -05:00
AlexBarys
3336fa11ee Fixed misspelling of dragCoefficient property
As noted in issue #1501, the dragCoefficient property was misspelled in multiple locations as "dragCoeffiecient"
This corrects the spelling in all of those locations.
2017-04-26 13:10:32 -04:00
aaravamudan2014
878194bc9c Merge branch 'development' of https://github.com/aaravamudan2014/Torque3D into development 2017-04-26 09:41:06 -04:00
aaravamudan2014
591ddf6ae1 Added new config file save for vehicle re-mappings
Added gui functionality for vehicle re-mapping

Update optionsDlg.cs

Fixed some coding guidelines problem

Fix some of the indentation problems (tabs replaced by spaces).
Curly bracket guidelines followed.

fixed some indentation problems

just noticed a few more indentation problem, my bad.
2017-04-26 09:40:38 -04:00
Areloch
eded563ec2 Merge pull request #1991 from AlexBarys/AITurretIgnoreListFunctions
Ai turret ignore list functions
2017-04-26 01:21:56 -05:00
Areloch
19dcfde60f Merge pull request #1984 from FooBarbarians/fix-1912
Reordering initialization methods #1912
2017-04-26 01:11:51 -05:00
Areloch
ab51befa68 Merge pull request #1979 from Azaezel/purdyPitureProfiler
adds profiling to the various gbitmap loaders*
2017-04-26 01:01:54 -05:00
AlexBarys
21ea3f5ba2 Fixed old names of decal properties
Renamed the screenStartRadius and screenEndRadius properties in the bulletHoleDecal datablock and ScorchRXDecal datablock to fadeStartPixelSize and fadeEndPixelSize properties, respectively, to match names of the properties as defined in the decalData.cpp file, as noted in issue #1498
Among other possible fixes, this makes the size of the bullet hole decal's actually random in size now, instead of always being the exact same size.
2017-04-23 19:06:36 -04:00
AlexBarys
b82e87ec89 Function definitions for new functions
Added header file definitions for the two new functions created to implement the features requested in issue #1272
2017-04-23 19:01:31 -04:00
AlexBarys
1cddf09590 Implementation for two new features
Added implementation to expose two new functionalities from the c++ to Torquescript as requested in issue #1272.  Added both a DefineEngineMethod function for getting the count of the number of objects on the turret ignore list and a DefineEngineMethod function for returning a reference to the object on the ignore list at a given index on the ignore list.  Also added functions that do each of those things and are then encapsulated by those DefineEngineMethod functions.
2017-04-23 18:58:40 -04:00
AlexBarys
591f0088e0 Added clearIgnoreList() definition
Added the definition for the new function created to implement the feature request in issue #1271 to clear the entire ai turret ignore list with one function call.
2017-04-23 18:49:26 -04:00
DTFuchs
3121f30743 Update str.cpp 2017-04-23 18:49:08 -04:00
AlexBarys
afaf3648b4 Implementation to clear entire turret ignore list
Implementing the feature request made in issue #1271 to expose the functionality to clear the entire ai turret ignore list to Torquescript.
2017-04-23 18:46:17 -04:00
aaravamudan2014
55c12ebad9 fixed some indentation problems
just noticed a few more indentation problem, my bad.
2017-04-20 14:11:41 -07:00
aaravamudan2014
3ea47a5806 Fixed some coding guidelines problem
Fix some of the indentation problems (tabs replaced by spaces).
Curly bracket guidelines followed.
2017-04-20 09:21:39 -04:00
aaravamudan2014
a9833419bc Update optionsDlg.cs 2017-04-20 08:48:43 -04:00
Masquara
970dd5c477 Reordering initialization methods #1912 2017-04-19 14:02:45 -04:00
Areloch
ea3eb65efd Merge pull request #1977 from Areloch/Xenon_Removal
Removes bits of code and includes that are based on old console flags
2017-04-18 20:48:35 -05:00
Areloch
c443e7a4ae Merge branch 'development' into Xenon_Removal 2017-04-18 20:47:43 -05:00
Areloch
67aa2e0f4d Merge pull request #1980 from Areloch/PrepassToDeferredRename
Replaces uses of 'Prepass' with 'Deferred'
2017-04-18 20:46:21 -05:00
Areloch
e724b2fcdd Merge pull request #1983 from klaus95/patch-1
Fix for bug #1738
2017-04-17 20:27:56 -05:00
Areloch
130d08edd4 Merge pull request #1952 from pacomont/Fix_Issue_#1951_TCPObject_is_broken_3.10
Fix issue #1951 tcp object is broken 3.10
2017-04-17 20:19:39 -05:00
Areloch
6cee446926 Merge branch 'development' into Fix_Issue_#1951_TCPObject_is_broken_3.10 2017-04-17 20:19:20 -05:00
Areloch
3b17e25a4c Merge pull request #1981 from killsap/development
Possible fix to issue #1951
2017-04-17 20:07:06 -05:00
klaus95
5378abfc55 Fix for bug #1738
getTrailingNumber("string") and stripTrailingNumber("string") will now work for single letter cases. For example, getTrailingNumber() will return "11" if the input is "a11" or "t11", and stripTrailingNumber() will return "a" if the input is "a11".
2017-04-17 15:46:44 -07:00
aaravamudan2014
dfd5812e07 Added gui functionality for vehicle re-mapping 2017-04-17 16:11:10 -04:00
aaravamudan2014
92b169337e Added new config file save for vehicle re-mappings 2017-04-17 16:07:03 -04:00
Chris Millsap
55f3430571 Comment formatting
Removed incorrect comments to be more inline with windows and linux. Put
comment on line 812 on top of code.
2017-04-12 18:54:59 -04:00
Chris Millsap
db3ffab832 Possible fix to issue #1951
(Code formated to be submitted for pull request) -- Indentation was off.
SAME FIX AS BEFORE

When two instances of Torque3D are running on the same network, one as a
hosted server and the other as a client, the client is unable to connect
to the server. The program now can open a socket. This was obviously a
typo. To find the error I just searched for keywords containing socket,
open, open socket, and opensocket till I found the correct file. The
other error was in how the program processed “non fatal” errors. I just
outputed the error to the main console and devised that the socket
should not be closed for a WSAEWOULDBLOCK error 10035 "It is normal for
WSAEWOULDBLOCK to be reported as the result from calling connect on a
nonblocking SOCK_STREAM socket, since some time must elapse for the
connection to be established."

Read about the WouldBlock error:

https://msdn.microsoft.com/en-us/library/windows/desktop/ms740668(v=vs.85).aspx

Use of dbgSetParameters ( port , password ):

http://docs.garagegames.com/tge/official/content/documentation/Reference/Console%20Functions/TorqueScript_Console_Functions_2.html#dbgSetParameters_.28_port_.2C_password_.29
2017-04-11 14:51:29 -04:00
Areloch
1bfdb41694 Goes and replaces the references/names that use Prepass to be Deferred, since we're actually using deferred. 2017-04-11 00:23:14 -05:00
Azaezel
f889aebcea adds profiling to the various gbitmap loaders*
*note, DDS bypasses the gbitmap method chain in question.
2017-04-10 21:43:38 -05:00