ttimo
6ac09d6f73
Improvements when not using BSP monitoring: check return code and show a clear error message, add a pause at the end of the compile
2022-11-24 18:21:25 -06:00
ttimo
28fe20b384
fix crash in release - that bug has been in forever? does this show up now because of the compiler/platform upgrade?
2022-11-24 18:19:47 -06:00
Timothee 'TTimo' Besset
c9fce466d1
Upgrade Windows project files to 2019
2022-11-24 18:19:08 -06:00
Thomas Debesse
8aeff6b09a
Do not do using namespace std
to avoid type conflict
...
The STL now defines `std::byte` so doing `using namespace std`
will conflict will custom definition of `byte`, which this
legacy code is full of.
It looks like NetRadiant went the route of making explicit
usage of `std::` prefixed types and did not renamed the
custom definition of byte, so doing the same reduces diff
noise between the two trees.
This also makes the code future proof if the STL decides
to define some other types with common name.
This patches replaces all usages of `map`, `pair` and
`vector` with `std::map`, `std::pair` and `std::vector`
and remove the `using namespace std` line in `stl_check.h`.
```
libs/mathlib.h:132:44: error: reference to ‘byte’ is ambiguous
132 | void NormalToLatLong( const vec3_t normal, byte bytes[2] );
| ^~~~
In file included from /usr/include/c++/11/bits/stl_algobase.h:61,
from /usr/include/c++/11/bits/char_traits.h:39,
from /usr/include/c++/11/ios:40,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from libs/missing.h:76,
from radiant/qe3.h:40,
from radiant/stdafx.h:39,
from radiant/bp_dlg.cpp:28:
/usr/include/c++/11/bits/cpp_type_traits.h:404:30: note: candidates are: ‘enum class std::byte’
404 | enum class byte : unsigned char;
| ^~~~
```
2022-07-14 17:18:51 +02:00
be993ad422
Merge illwieckz their portability fix
2021-08-03 18:27:19 +02:00
3408871d79
add IQM format support into lib/picomodel
2021-07-29 17:44:53 +02:00
Jay Dolan
23010c89bc
Fix glaring pointer issue in Picomodel load / free.
...
This one was producing 11 or so warnings.
2020-11-02 17:42:50 -05:00
Zack Middleton
7110342987
Fix over allocating vertexes for OBJ models with multiple surfaces
...
Loading Wavefront OBJ models in picomodel (used by radiant and q3map2)
did not reset the surface vertex index when starting a new surface. This
caused there to be unused vertexes, equal to the number of vertexes in
all previous surfaces, at the beginning of each surface. Exponential OBJ
vertex memory usage as number of surfaces increases. It did not affect
displaying or processing the surface faces.
2018-10-31 16:10:47 -05:00
Thomas Debesse
01d635a135
tools: reduce diff noise
2018-01-27 22:54:14 +01:00
rpolzer
58f0f9e557
q3map2/picomodel: remove some warnings
...
imported from netradiant, initial commit message:
> q3map2 is now waring free
2018-01-27 22:53:18 +01:00
Thomas Köppe
e1eeefac58
[pico] Add missing header inclusion
2018-01-22 16:52:52 +00:00
Timothee Besset
921dc5083c
remove rogue INT_MIN definition
2018-01-22 08:52:06 -06:00
Timothee Besset
08b44c433d
Disable the deprecated functions warning
2018-01-21 14:59:29 -06:00
Timothee Besset
e08d6b6429
Visual Studio 2017. Fixed q3map2_urt 64 bit compilation also.
2018-01-21 14:47:06 -06:00
Timothee "TTimo" Besset
943107012f
Merge pull request #564 from illwieckz/gcc8
...
gcc8: static_cast NULL instead of reinterpret_cast
2018-01-20 15:33:17 -06:00
Pan
189a61a9e0
Fix missing #elif
2018-01-20 12:06:23 +01:00
Thomas Debesse
38b0faf0da
preproc: more unknown architecture error
2017-08-31 00:45:30 +02:00
Thomas Debesse
417032e526
bikeshedding: move some misplaced comment
2017-08-31 00:45:30 +02:00
Thomas Debesse
413564daa3
preproc: add some FreeBSD defines (path sep etc.)
2017-08-31 00:45:29 +02:00
Thomas Debesse
8d176b75c8
gcc8: static_cast NULL instead of reinterpret_cast
2017-08-30 18:16:07 +02:00
Thomas Debesse
a3773852a4
preproc: add a FreeBSD condition everytime there is Linux or MacOS
2017-08-30 14:20:01 +00:00
Pan7
2793befffd
Fix warning equality comparison with extraneous parentheses 2
2017-07-09 15:29:30 +02:00
Pan7
81a1776bbd
Fix more extraneous parentheses warnings
2017-04-27 21:58:43 +02:00
Timothee Besset
fd3ec15ae4
fix compiler warning, be more legible
2017-02-25 15:11:45 -06:00
Timothee "TTimo" Besset
4a85ffff3a
Merge pull request #404 from Pan7/Fixlwob
...
Fix gcc warning tex may be used uninitialized in this function
2017-02-25 14:59:41 -06:00
Timothee Besset
0c3d8f5f70
misc wording
2017-02-25 14:54:27 -06:00
Pan7
bb3dd7421c
Fix gcc warning tex may be used uninitialized in this function
2017-02-24 15:48:12 +01:00
Pan7
3bc866b623
Don't free buffer of another scope ( #401 )
2017-02-21 12:45:49 -05:00
Pan7
d90ddd6cf8
Fix obj crash ( #399 )
2017-02-21 12:45:37 -05:00
TTimo
1d0feb0a4a
Merge branch 'master' of github.com:TTimo/GtkRadiant
2017-01-01 09:08:45 -06:00
TTimo
a26c818a1e
remove the old .vcproj
2017-01-01 09:08:37 -06:00
Timothee "TTimo" Besset
fe89aa3e6f
Merge pull request #377 from Pan7/fixmatrix
...
Fix gcc warning sizeof on array function parameter src will return si…
2017-01-01 08:43:26 -06:00
Timothee "TTimo" Besset
d8480ac41c
Merge pull request #376 from Pan7/m4x4
...
m4_submat modification
2017-01-01 08:41:38 -06:00
TTimo
d7dafaea33
tweak previous pull with an assert
2017-01-01 08:30:46 -06:00
Timothee "TTimo" Besset
d1e5cf4b65
Merge pull request #373 from Pan7/fixlwo2
...
Fix gcc warning i may be used uninitialized
2017-01-01 08:28:36 -06:00
Timothee "TTimo" Besset
a6d10074b7
Merge pull request #372 from Pan7/fixlwo
...
Fix for potentially using uninitialized variable
2017-01-01 08:24:28 -06:00
Jay Dolan
5938d4e49f
Fix a handful of compiler warnings.
2016-12-31 16:02:08 -05:00
Jay Dolan
a851e037c8
This generates a different warning now, and is just wrong anyway.
2016-12-31 15:55:29 -05:00
Jay Dolan
b529282159
Fix compilation on OS X. How is this working elsewhere?
2016-12-31 15:44:18 -05:00
Christophe Mateos
c483b791b0
Aligment.
2016-12-19 23:53:11 +01:00
Christophe Mateos
2d08c0518c
PicoModel Backport: Fixed compilation.
2016-12-19 23:45:54 +01:00
Timothee "TTimo" Besset
bcdcd58467
Merge pull request #387 from Mateos81/PicoModelExperiment
...
PicoModel lib backport from 1.5
2016-12-10 11:16:48 -06:00
Christophe Mateos
14c2c858b9
PicoModel - End of 1.5 backporting
...
lwo subfolder already done by @jdolan:
a269593afe (diff-584b574ac260b5150f42f60544e9266e)
2016-12-09 02:57:39 +01:00
Christophe Mateos
054cfcd15c
PicoModel: Cleanup, ASE support upgrade test, uncrustify
...
Next to be tested is MD3...
2016-12-04 06:16:39 +01:00
Christophe Mateos
41f9d3a1e1
Ported picomodel.c from 1.5
...
Improvements over 1.4/1.5 are in.
2016-12-04 01:43:28 +01:00
Timothee Besset
5432b04490
update git ignores
2016-09-30 10:24:25 -05:00
Timothee Besset
cd222b3618
misc cleanup
2016-09-29 14:20:56 -05:00
Pan7
70b90a60c7
Fix gcc warning sizeof on array function parameter src will return size of float (*)[3]
2016-08-25 17:47:34 +02:00
Pan7
3c9676f428
m4_submat modification
2016-08-24 11:28:08 +02:00
Pan7
d089ba9454
Fix gcc warning shdr may be used uninitialized
2016-08-22 10:41:34 +02:00