Commit Graph

22 Commits

Author SHA1 Message Date
Timothee 'TTimo' Besset 340651526d prune dead code 2022-11-24 18:19:12 -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 ce321bf04b Add a filter for Quetoo's CONTENTS_ATMOSPHERIC. 2022-01-24 20:24:02 -05:00
Jay Dolan 112e118de1 Add a filter for CONTENTS_MIST, with special love for common/fog and common/dust.
This allows mappers to quickly toggle large fog volumes in the camera view.
2020-12-16 21:56:16 -05: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
Jay Dolan fcf9d433b1 Introduce idTech2 material filters for Quake2 and Quetoo, introduce sky filter as well. 2020-11-10 12:29:07 -05:00
Thomas Debesse b1c4fb1304 make “hide empty directories” an option 2017-09-03 20:16:53 +02:00
Pan7 7e95dbb1e0 Texture directory list 2017-05-02 02:15:35 +02:00
Pan7 e822bca2ae Remove deprecated gtkhandlebox and replace gdk_window_get_pointer 2017-04-27 00:40:18 +02:00
Pan7 9d9a0581e9 Feature: Make Hollow Touch/Overlap 2017-02-27 03:49:49 +01:00
Josh Steffen 19bd95b0a2 Added option to change detail brush color in 2d view 2015-01-15 07:14:03 -05:00
Chris Brooke 949547b125 Added a toggle button to the main toolbar for creating Structural/Detail brushes 2013-07-26 22:25:56 +01:00
jdolan a269593afe Low hanging fruit: bring the number of compiler warnings down from 264 to 33. 2013-05-03 02:57:29 -04:00
Willi Schinmeyer 22de3606a6 If the first argument ends in .map, try to load it as a map (instead of as a project) 2012-05-04 10:02:31 +02:00
Timothee TTimo Besset 830125fad0 uncrustify! now the code is only ugly on the *inside* 2012-03-17 15:01:54 -05:00
TTimo cc4e44e31a merge branch work back into trunk
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@319 8a3a26a2-13c4-0310-b231-cf6edde360e5
2008-09-01 17:34:10 +00:00
TTimo 2def0428da ABToSVK commit
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/branches/ZeroRadiant.ab@308 8a3a26a2-13c4-0310-b231-cf6edde360e5
2008-08-24 03:20:51 +00:00
mattn babec56d56 * reverted some const changes in order to let g_slist_append work again
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@280 8a3a26a2-13c4-0310-b231-cf6edde360e5
2008-06-26 13:53:24 +00:00
mattn e4b1c1a55c * fixed a lot of compiler warnings (mostly const char * stuff and use of uninitialized data)
* add support for translating radiant (just marked three strings, more to come)


git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@264 8a3a26a2-13c4-0310-b231-cf6edde360e5
2008-06-26 07:52:02 +00:00
TTimo ab3a99dbbe eol style
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/branches/ZeroRadiant.ab@184 8a3a26a2-13c4-0310-b231-cf6edde360e5
2007-11-04 03:47:06 +00:00
TTimo 9998050654 set eol-style
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/branches/ZeroRadiant@183 8a3a26a2-13c4-0310-b231-cf6edde360e5
2007-11-04 03:34:51 +00:00
TTimo 8037810110 transfer from internal tree r5311 branches/1.4-gpl
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/branches/ZeroRadiant@177 8a3a26a2-13c4-0310-b231-cf6edde360e5
2007-09-12 18:54:28 +00:00