Commit graph

102 commits

Author SHA1 Message Date
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
Jay Dolan
07a34e72a1 Add smooth camera movement for non-discrete movement code path.
The camera key control routine now accumulates angular and positional velocity, and applies them per frame. There is also a friction component to reduce and then clear them over a few frames. This feels a lot closer to "noclip" movement, and allows mappers to navigate more precisely, which makes selecting brushes and faces in intricate areas much easier. YouTube preview of the movement here: https://www.youtube.com/watch?v=oiKwr3w0o5c
2020-11-11 12:31:34 -05: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
Thomas Debesse
a3773852a4 preproc: add a FreeBSD condition everytime there is Linux or MacOS 2017-08-30 14:20:01 +00:00
Timothee Besset
62d0a93fda #162 bobtoolz brush cleanup wasn't loading patches, so it was dropping them from rebuilding func_group entities after fixing bad brushes in them 2017-08-20 16:57:09 -05:00
Pan7
d00ca4e12c Fix missing sentinel warning 2 2017-07-09 20:55:56 +02:00
Pan7
2e119b583d Extra gtk_box_set_homogeneous function calls 2017-05-16 00:34:04 +02:00
Timothee "TTimo" Besset
ef888dede5 Merge pull request #492 from Pan7/bobNum
Numeric text fields for bobtoolz
2017-05-15 17:06:30 -05:00
Pan7
d08926a1fe Numeric text fields for bobtoolz 2017-05-14 05:18:36 +02:00
Pan7
31c24a875f Make menus more consistent with ellipses 2017-05-10 23:26:29 +02:00
Pan7
12ac550d8b Remove unused var g_cNull 2017-04-29 13:25:45 +02:00
Pan7
e74153558b Fix delete and comparison warning 2017-04-27 17:56:57 +02:00
Pan7
0402765f7b Replace deprecated gtk combo 2017-04-24 16:32:26 +02:00
Timothee "TTimo" Besset
ba1e7f2efb Merge pull request #450 from Pan7/deprcursor2
Replace deprecated gdk_cursor_new
2017-04-22 13:05:20 -05:00
Timothee "TTimo" Besset
0a965b80d6 Merge pull request #447 from Pan7/plugwidget
Add plugin parent widget
2017-04-22 12:50:28 -05:00
Pan7
5c224421bc Replace deprecated gdk_cursor_new 2017-04-10 17:23:08 +02:00
Pan7
c34edd31b9 Add plugin parent widget 2017-04-04 22:54:03 +02:00
Pan7
aeaa370f09 Left align for the text of Labels 2017-03-28 09:29:11 +02:00
Pan7
e9aa6a836f More Dialog improvements 2017-03-26 17:09:18 +02:00
Pan7
c2e44c532a Dialog improvements 2017-03-23 09:37:50 +01:00
Pan7
626c2ef7cd More gtk i81n 2017-03-16 12:40:56 +01:00
Pan7
bdb1c3abaa Replacing deprecated GTK functions 2017-03-15 11:58:36 +01:00
Timothee "TTimo" Besset
f3f2e0262f Merge branch 'master' into gtk-i81n 2017-03-12 12:42:16 -05:00
Timothee "TTimo" Besset
cb1e21565b Merge pull request #429 from Pan7/gtkimpro
gtk improvements
2017-03-12 12:41:24 -05:00
Pan7
26f4bd0f4f gtk i81n 2017-03-10 23:03:03 +01:00
Pan7
9f22a81a64 gtk improvements 2017-03-10 22:44:05 +01:00
Pan7
afca61523a Use GTK2 events 2017-03-04 18:36:21 +01:00
Timothee Besset
a1284302bb fix 'may be used uninitialized' 2017-02-25 15:04:31 -06:00
Timothee Besset
d945964efc fix 'may be used uninitialized' 2017-02-25 14:55:03 -06:00
TTimo
a26c818a1e remove the old .vcproj 2017-01-01 09:08:37 -06:00
Timothee "TTimo" Besset
c918a29cd0 Merge pull request #352 from Pan7/Sys_FPrintf
Using Sys_FPrintf with SYS_WRN and SYS_ERR
2016-06-11 13:01:13 -05:00
Pan7
5105fc5db8 Using Sys_FPrintf with SYS_WRN and SYS_ERR 2016-05-16 21:20:20 +02:00
Timothee Besset
b36b3ba4b6 Visual Studio 2015 on debug configs too 2016-04-24 14:52:52 -05:00
Timothee Besset
5ed4d02c78 more Visual Studio 2015 conversion 2015-12-24 19:21:23 -06:00
TTimo
48369d78f9 - Convert to Visual Studio 2015
- Drop STLPort
- Rebuild libxml2 binaries, update project files accordingly
- Rebuild jpeg-9 binaries
2015-11-07 23:44:49 -06:00
Eric Wasylishen
adbace1da2 Use clang on OS X instead of gcc48
Also - add 'pkgconfig' to list of MacPorts to install, as it's a required dependency.
2014-01-19 22:25:08 -07:00
TTimo
666847b0ce switch to xp compatible compiler toolchain, add/fix an archive and upload script for the VM builder 2013-08-24 22:50:12 +00:00
Chris Brooke
60a0f49052 some more gtk spin-button cleanup ( Preferences / Surface Inspector / Patch Inspector / Arbitrary Rotation / gtkGenSurf plugin ) 2013-07-22 03:06:06 +01:00
jdolan
83f039dbd7 Comment out unused variables in gtkgensurf plugin. 2013-07-07 10:20:18 -04:00
jdolan
0dae745694 Again, use intptr_t when casting from gpointer to int. 2013-07-07 10:18:51 -04:00
jdolan
a6fbf511a2 Yet another char cast fix. 2013-07-07 10:16:11 -04:00
jdolan
8910ffc600 Use intptr_t again when casting gpointer to integers. 2013-07-07 10:14:48 -04:00
jdolan
21a7ab44c7 Re-define fileHandle_t as void * so that it is 64-bit safe. Fixes 4 compiler warnings and potentially some broken code. 2013-07-07 10:14:29 -04:00
jdolan
e5b2ced9d1 Remove UFO:AI plugin. 2013-07-04 20:30:11 -04:00
jdolan
45b95af999 Revert "Kill off UFO plugins."
This reverts commit 75cc7d3a45.
2013-07-04 20:12:37 -04:00
jdolan
75cc7d3a45 Kill off UFO plugins. 2013-07-04 13:03:56 -04:00
Timothee Besset
5d08c3e9ec add *.ogg and *.wav to the sound types selection 2013-06-22 21:56:11 +01:00
Timothee Besset
f72f41cf1d fix ws2_32 lib dep 2013-06-02 00:17:56 +01:00