ddnet/src/game
bors[bot] cc612a7e18
Merge #6423
6423: Always enable editor panning and zooming when GUI is hidden r=heinrich5991 a=Robyt3

The `UI()->MouseInside(&View)` check does work when the mouse is all the way at the right or bottom side. Changing the `MouseInside` functions introduces other problems due to UI element and mouse positions being floating point numbers and not corresponding to exact pixels.

As a workaround to enable unlimited editor panning in all direction when the GUI is hidden the check is omitted, as the map editor encompasses the entire view and so the check is not necessary in this case.

Closes #4553.

## Checklist

- [X] Tested the change ingame
- [ ] Provided screenshots if it is a visual change
- [ ] Tested in combination with possibly related configuration options
- [ ] Written a unit test (especially base/) or added coverage to integration test
- [ ] Considered possible null pointers and out of bounds array indexing
- [ ] Changed no physics that affect existing maps
- [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck) (optional)


Co-authored-by: Robert Müller <robytemueller@gmail.com>
2023-03-16 20:51:17 +00:00
..
client Merge #6425 2023-03-16 20:29:33 +00:00
editor Always enable editor panning and zooming when GUI is hidden 2023-03-14 22:19:40 +01:00
server Merge #6324 #6345 2023-03-05 16:53:37 +00:00
collision.cpp Replace usages of C math functions 2023-03-01 19:26:53 +01:00
collision.h Huge variable naming format 2022-07-08 18:01:29 +02:00
ddracechat.h Add /timecp command to get another players time checkpoints 2022-06-08 21:10:36 +02:00
ddracecommands.h Merge #6071 #6077 #6085 #6088 #6090 2022-12-05 16:12:05 +00:00
gamecore.cpp Replace usages of C math functions 2023-03-01 19:26:53 +01:00
gamecore.h Running and AFK anim. states 2022-09-16 12:30:05 +02:00
layers.cpp Parallax Zoom: use CMapItemGroupEx to store parallax value 2022-08-10 03:05:23 +01:00
layers.h Parallax Zoom: use CMapItemGroupEx to store parallax value 2022-08-10 03:05:23 +01:00
localization.cpp Format vector variables names (fixes #5209) 2022-06-11 21:38:49 +02:00
localization.h Format vector variables names (fixes #5209) 2022-06-11 21:38:49 +02:00
mapbugs.cpp Fix more unsafe define 2022-06-29 23:52:03 +02:00
mapbugs.h Remove code for CRC in most places, except where needed for net compat 2020-10-14 17:08:58 +02:00
mapbugs_list.h Revert "Add mapbug "stoppers-passthrough@ddnet.tw"" 2018-08-22 08:33:21 +02:00
mapitems.cpp Implement shields that remove specific weapon (fixes #4572) 2022-04-28 16:49:32 +02:00
mapitems.h Add CEnvPoint::MAX_CHANNELS constant 2023-01-25 20:05:05 +01:00
mapitems_ex.cpp Parallax Zoom: use CMapItemGroupEx to store parallax value 2022-08-10 03:05:23 +01:00
mapitems_ex.h Parallax Zoom: use CMapItemGroupEx to store parallax value 2022-08-10 03:05:23 +01:00
mapitems_ex_types.h Parallax Zoom: use CMapItemGroupEx to store parallax value 2022-08-10 03:05:23 +01:00
prng.cpp Huge variable naming format 2022-07-08 18:01:29 +02:00
prng.h Replace all usages of C standard headers with C++ headers 2023-03-01 19:26:51 +01:00
teamscore.cpp Remove unnecessary include in protocol, move definitions to cpp file 2023-01-03 14:10:58 +01:00
teamscore.h Remove unnecessary include in protocol, move definitions to cpp file 2023-01-03 14:10:58 +01:00
tuning.h Add hammer_hit_fire_delay tune 2021-05-01 16:36:12 +02:00
variables.h Add CFGFLAG_SAVE flag to save prediction margin (fixes #6332) 2023-02-13 21:24:10 +01:00
version.h Version 16.8 2023-03-05 15:41:26 +01:00
voting.h Run clang-format 2020-09-26 21:50:15 +02:00