Commit graph

6025 commits

Author SHA1 Message Date
def 9a0706f8b1 Support ctrl-l to load map in editor 2017-07-15 18:08:34 +02:00
def 5ad633ef26 No success with Windows fixes, have to delay until someone with a
Windows computer can look into it
2017-07-15 17:29:57 +02:00
def fba3815ddc Only send password on connection when explicitly asked to (fixes #788) 2017-07-15 17:29:20 +02:00
def 49eb0128f2 Windows cleanup 2017-07-15 16:38:40 +02:00
def 1e3476e8bd Opposite manifest setting 2017-07-15 16:18:18 +02:00
def 9bf84fd4be Don't keep enabling input in menu all the time (fixes #706) 2017-07-15 15:37:05 +02:00
def 78dc5aa959 Another Windows DPI try 2017-07-15 15:31:53 +02:00
def f627a72ebb Refcount IME usage (fixes #577 and #738) 2017-07-15 15:25:36 +02:00
def a5bd671e55 Show X and Y coordinates in map editor 2017-07-12 20:25:48 +02:00
def f2444b0de7 Add map_diff tool to compare tile layers of map versions 2017-07-12 20:15:00 +02:00
def ff8d22e335 Audio volume on right speaker should depend on x coordinate, not y... 2017-07-11 22:10:23 +02:00
Dennis Felsing 38eacf21b7 Next try for Windows 2017-07-11 14:37:12 +02:00
Dennis Felsing 6a90b00b0b Types 2017-07-11 14:25:53 +02:00
Dennis Felsing d6f6095358 Types 2017-07-11 14:24:28 +02:00
Dennis Felsing 81c6d0b33c Who doesn't enjoy fixing Windows stuff? 2017-07-11 14:08:03 +02:00
def 8b5ee98193 Handle input reset on chat correctly on DDNet servers and other servers 2017-07-10 22:24:40 +02:00
Dennis Felsing bcb30c860e Merge pull request #761 from Learath2/dd_pr_vanillapause
Can't spectate yourself when /pause'd
2017-07-09 23:15:57 +02:00
def d0f4ffdaad SDL_HINT_VIDEO_HIGHDPI_DISABLED 2017-07-09 19:53:02 +02:00
def 53565aa937 fixes 2017-07-09 14:56:57 +02:00
def afe8b4dfbe Or we just disable stupid highdpi... 2017-07-09 14:50:10 +02:00
def 46cedf3a8c Compiler warnings 2017-07-09 10:27:58 +02:00
def 66f6f16e81 Windows DPI fixes #2 2017-07-09 09:44:07 +02:00
def 2a1bf93165 Try to fix Windows DPI issue 2017-07-09 09:24:08 +02:00
def 35dcb4d6cf Don't open map file again if we have it open already 2017-07-08 22:09:03 +02:00
def 42b07441a5 Try to make SQL connections a bit more hardy 2017-07-08 14:14:50 +02:00
def f3e3d57a90 Always close files, cleaner demo recording, fix some other stuff 2017-07-08 13:39:20 +02:00
heinrich5991 409bc0e019 Ensure null-termination in str_escape
This also fixes a couple of potential buffer overflows. The affected
code is still buggy (doesn't do the right thing on potential buffer
overflow), but at least it won't result in crashes/out of bound writes
anymore.
2017-07-08 13:06:03 +02:00
def 33927f6397 Version 10.6.4 2017-07-08 11:06:59 +02:00
def 36d5c8d608 string toggling supports escaped strings; also some code cleanup 2017-07-08 11:03:51 +02:00
Dennis Felsing 80565b646c Merge pull request #790 from Learath2/dd_pr_togglestr
Add toggling for string options
2017-07-08 10:03:47 +02:00
ChillerDragon 727b9f84b6 fixed scoreboard update for slow racers (less hacky) (#765)
* fixed scoreboard update for slow racers (less hacky)

* Fix some style issues
2017-07-05 23:01:57 +02:00
def 37a08e8ef0 Support pageup, pagedown, home, end buttons in menus 2017-07-04 22:07:02 +02:00
Dennis Felsing fd73fdd942 Fix set_team_ddr doc 2017-06-26 16:00:03 +02:00
Learath2 5941755832 Add toggling for string options 2017-06-20 11:27:14 +02:00
heinrich5991 1a50d405cb Use str_find from src/base/system.h and check for C: on Windows
Previously, using drive-relative paths could be used to escape the
Teeworlds directory on Windows.
2017-06-18 16:26:29 +02:00
def 59b33b95e4 Stronger catch for .. 2017-06-17 23:07:02 +02:00
def d3daa51486 Correct filter 2017-06-16 22:19:36 +02:00
def 624fd38188 Oops 2017-06-16 20:46:41 +02:00
def 1b0de108c6 Forbid escaping base directory 2017-06-16 20:22:43 +02:00
Tim Schumacher 2ef05c2def Use sv_teleport_hold_hook also for checkpoint tele 2017-06-15 16:07:27 +02:00
Tim Schumacher 47fecc8659 Add sv_check_teleport_hold_hook map setting 2017-06-15 15:49:07 +02:00
def 3aaf38cefb Fix map_extract usage a bit 2017-06-12 21:18:21 +02:00
def c34482a9c4 Version 10.6.3 2017-06-12 21:12:57 +02:00
def c943efbec0 Add tool to extract images and sounds from maps 2017-06-12 21:00:33 +02:00
Learath2 49e4501cc7 Merge pull request #785 from Ryozuki/pr_ddnet_fix_dbgassert
Get rid of wrong dbg_assert that can crash server
2017-06-12 18:54:48 +03:00
Ryozuki 5f23a68caf get rid of wrong dbg_assert 2017-06-12 17:49:01 +02:00
def 73c61e4169 Let's not save maps that are ok already 2017-06-11 20:18:28 +02:00
def 2bd6316ce7 Add code for fixing old maps by removing unused tiles 2017-06-11 19:53:55 +02:00
heinrich5991 743c58e4ae Revert "Fix OSX cmake build"
This reverts commit 3406f01ff9.
2017-06-09 19:34:01 +02:00
Learath2 3406f01ff9 Fix OSX cmake build
A little crude but it works.
2017-06-09 16:05:04 +02:00
eeeee 0497cdd49d stop casting auth state to bool 2017-06-08 13:03:44 -07:00
Learath2 ca4da73b75 Update the range of sv_default_timer_type. Fixes #760 2017-06-08 14:35:48 +03:00
eeeee 9c5ade24da remove ConDnsblStatus copypasta 2017-06-07 11:04:04 +02:00
def e4b3c17829 Add option to disable long pain sound (used when shooting in freeze) 2017-06-06 18:58:23 +02:00
Learath2 b04876361d Fix indentation 2017-06-06 10:13:19 +02:00
eeeee 2797227063 also remove references to CGameContext from CServer 2017-06-05 22:31:56 -07:00
eeeee 9b6699d3b8 remove casts to CServer
improving encapsulation by going through the interface instead of including engine/server/server.h
2017-06-05 20:51:12 -07:00
def ec5ede7633 Version 10.6.2 2017-06-04 21:00:42 +02:00
def b592d6af55 ms not µs for thread_sleep 2017-06-02 23:28:47 +02:00
def 7e503a306b Revert "Back to cl_cpu_throttle_inactive"
This reverts commit c217040319.
2017-06-02 23:27:35 +02:00
def c217040319 Back to cl_cpu_throttle_inactive 2017-06-02 23:18:14 +02:00
def 7a83af4d1b Fix Mac build 2017-06-02 22:10:58 +02:00
def d6e5df0023 oops 2017-06-02 21:58:16 +02:00
def 45acda1a66 Fix compiler warning 2017-06-02 21:49:53 +02:00
def b8d61e9b7d Change some defaults 2017-06-02 21:49:30 +02:00
def 8553ed727b Replace cl_cpu_throttle with cl_refresh_rate 2017-06-02 21:33:45 +02:00
def 4125941896 Disable dbg_stress in release builds (fewer confused kids that think they hacked the server, less useless code in cache) 2017-06-02 20:45:09 +02:00
def fe89b65368 Stupid C90 2017-06-02 20:31:37 +02:00
def a6e144ea72 Let's not crash the client and server on dbg_assert 2017-06-02 20:12:20 +02:00
def 27074e926a Further cleanup 2017-06-02 19:44:14 +02:00
def 9b48e902f0 Prevent data race when initializing loggers 2017-06-02 18:47:26 +02:00
def 814feede33 Don't copy strings into themselves 2017-06-02 18:37:29 +02:00
def 533ae0aaf8 Fix login crash (fixes #771) 2017-06-02 18:13:56 +02:00
def a117e3a6e7 Version 10.6.1 2017-06-01 21:28:49 +02:00
def ac481a972c Heuristic to speed up ghost loading on map change 2017-06-01 21:26:59 +02:00
Dennis Felsing ca9cca4c94 Merge pull request #770 from heinrich5991/pr_fix_events_uuid
Fix unpacking of net events
2017-05-27 16:21:37 +02:00
heinrich5991 3b88d78736 Fix a possible out-of-bounds read in snapshot.cpp 2017-05-27 15:52:05 +02:00
heinrich5991 9e7020368e Fix UUID formatting - the last field only has 12 hex digits
It didn't cause misprinted UUIDs because the string buffers had the
correct size.
2017-05-27 15:02:32 +02:00
heinrich5991 5ae37e6c72 Add protocol extension with UUIDs
This system can easily be extended by independent authors without
collisions, something the old system with plain increasing integers did
not allow.

Do this by utilizing the previously unused message code `NETMSG_NULL`
which has a value of 0.

This works for engine and game messages, snapshot items and events.
2017-05-25 00:52:43 +02:00
def c49aa0671f Revert "A bit faster"
This reverts commit 1428c25083.
2017-05-24 23:16:10 +02:00
Learath2 6a6666abc4 Keep pause state when killed 2017-05-24 22:30:28 +02:00
def 1428c25083 A bit faster 2017-05-24 21:39:04 +02:00
def 02995bf72f Oops 2017-05-24 21:36:14 +02:00
def 1f86e6c8df Save fixes 2017-05-24 21:32:26 +02:00
def 1b2a85af58 Fix m_Jumped loading 2017-05-24 20:23:54 +02:00
def 562dee6e38 Clean up server messages a bit 2017-05-21 01:20:25 +02:00
Valentin Lorentz 191f0e7f3d Hide empty broadcast messages. 2017-05-20 13:59:39 +02:00
def 63c1d75458 When frozen and afk, show normal eyes to be able to tell non-afk from afk 2017-05-19 19:12:52 +02:00
Learath2 cf81ef8ce6 Can't spectate yourself when /pause'd 2017-05-19 00:21:01 +02:00
def c1c2c1575f Fix some vanilla pause issues 2017-05-18 23:52:54 +02:00
def d7d0520f79 Another try 2017-05-18 20:04:29 +02:00
def 819187f376 Fix unweapons 2017-05-18 20:01:10 +02:00
def 0f14307e8f oops 2017-05-17 22:37:54 +02:00
def 7e7d56048b New try at loading in team only 2017-05-17 22:30:13 +02:00
def 569f17e3f3 No need to localize icons 2017-05-17 19:11:32 +02:00
def bd75e6e1f6 Actual fix 2017-05-17 18:56:58 +02:00
def a8966c680e Revert "Prevent vote spam"
This reverts commit 526a23b191.
2017-05-17 18:55:45 +02:00
def b48005fe40 Revert "Fix last map vote"
This reverts commit 42f3b0d7a8.
2017-05-17 18:50:01 +02:00
def 42f3b0d7a8 Fix last map vote 2017-05-17 18:45:45 +02:00
def a7ee59804b Reverse... 2017-05-16 17:52:29 +02:00
Dennis Felsing 666d1585b7 Fix crash on invalid pause state in save 2017-05-16 17:02:28 +02:00
def 74e19b26a7 Version 10.6 2017-05-15 22:32:31 +02:00
Learath2 b4b5d6cc9e /pause'd players stay in player list 2017-05-15 13:56:54 +02:00
Dennis Felsing 87adba55ad Allow voting again if no map could be found for random map vote 2017-05-15 11:15:04 +02:00
def 8c9995f166 oops 2017-05-14 22:44:52 +02:00
def 413f96b43d Prevent some save/load cheating 2017-05-14 22:42:49 +02:00
def f4112e3bcb Revert "Tees must be teamed up before loading"
This reverts commit d29f2306ef.
2017-05-14 22:36:44 +02:00
def f57f1d0d17 You can't invite someone to team on solo server... 2017-05-14 22:16:58 +02:00
def f2232b8026 Fix compilation 2017-05-14 22:14:02 +02:00
def c2400c79cf Rename cl_show_other_hook_coll to cl_show_hook_coll_other and add cl_show_hook_coll_own (fixes #741) 2017-05-14 12:03:09 +02:00
Dennis Felsing 278b17b460 Merge pull request #721 from Learath2/dd_pr_pause
Rework the pause system
2017-05-14 11:55:09 +02:00
Dennis Felsing 58207926ac Merge pull request #726 from Learath2/dd_pr_load
Tees must be teamed up before loading
2017-05-14 11:54:39 +02:00
Dennis Felsing a0a1276b6a Merge pull request #751 from Learath2/dd_pr_ratelimitinvite
Add ratelimiting for /invite
2017-05-14 11:50:43 +02:00
Dennis Felsing 728e548f55 Merge pull request #754 from SheikhZayx/master
CSV file instead of statboard screenshot
2017-05-14 11:49:46 +02:00
Dennis Felsing 610195f21e Merge pull request #753 from Learath2/dd_pr_voting
Fix vote spam
2017-05-14 11:49:12 +02:00
Dennis Felsing 45fa2a8586 Merge pull request #752 from d3fault/show-angle-in-debug
Add show angle in debug
2017-05-14 11:48:34 +02:00
def 6d81f1f188 Fix cl_cpu_throttle_inactive 2017-05-14 11:01:48 +02:00
def 7a9f316dd1 cl_cpu_throttle_inactive can be set higher than 1 2017-05-14 10:58:01 +02:00
SheikhZayx 451e5dfcf4 Sticking to naming convention. Freeing allocated memory. 2017-05-08 21:55:03 +02:00
SheikhZayx 80737e9c57 Fixed formatting & Removed function call for testing purposes 2017-05-02 18:55:05 +02:00
SheikhZayx 53e5150317 Altered string/memory function calls 2017-05-02 18:40:54 +02:00
SheikhZayx 6c0f889b95 Removed std::string 2017-05-02 18:27:04 +02:00
SheikhZayx 114eb81224 Changed loop variables 2017-04-28 11:28:18 +02:00
SheikhZayx 0d7a93326b Fixed includes 2017-04-26 19:08:31 +02:00
SheikhZayx ea0e4948b4 CSV file instead of statboard screenshot
En-/Disable statboard being saved as csv
2017-04-26 05:10:31 +02:00
Learath 58d3d5251a Fix a mistake. Kill on kick 2017-04-25 20:27:23 +02:00
Learath 526a23b191 Prevent vote spam
Apply the timeout even after a successful vote
2017-04-25 19:53:18 +02:00
Learath a1d2212696 Change behaviour for kick votes in teams 2017-04-25 19:10:22 +02:00
d3fault 592d2d7556 Add show angle in debug 2017-04-24 14:11:22 -07:00
Learath2 3878d6fb56 Reset invites when the team is empty 2017-04-24 21:28:02 +02:00
def 4b376d239c rename 2017-04-24 17:36:13 +02:00
Learath2 1d84d0db07 Get rid of trailing spaces 2017-04-24 14:05:09 +02:00
Learath2 c1a4a95d61 Add ratelimiting and config options for invite 2017-04-24 14:04:50 +02:00
Dennis Felsing 716b61df23 Merge pull request #750 from d3fault/more-precise-coords-in-debug
Add show more precise coords in debug
2017-04-24 13:36:04 +02:00
Learath2 aa3690a632 Reset invites when the team is empty 2017-04-24 13:31:05 +02:00
d3fault f5c4a6b578 Add show more precise coords in debug 2017-04-24 04:15:17 -07:00
Learath2 89199d04d0 Fix invite spam by abusing lock. 2017-04-24 11:03:16 +02:00
Learath2 309d47e933 Revert "Remove invite system entirely since no one wants to fix it"
This reverts commit 99cc9d2c0b.
2017-04-23 22:50:07 +02:00
def 99cc9d2c0b Remove invite system entirely since no one wants to fix it 2017-04-23 17:51:29 +02:00
def 8dcad29138 Also update timestamp in team rank (fixes discord bot to show team ranks when they exist) 2017-04-23 14:08:58 +02:00
Learath2 c091eb6cc9 Fix indentation 2017-04-22 19:04:16 +02:00
def 9da2655ea7 Add own time to /mapinfo 2017-04-21 20:13:51 +02:00
Dennis Felsing 63ca2f8749 Show nr of skipped log messages 2017-04-21 10:50:16 +02:00
def d84911618a Don't block when logging queue is full, instead ignore message 2017-04-20 21:25:20 +02:00
Ryozuki 3a4738560b Don't show ips to non-administrators, Fixes #694 (#739)
People with non-administrator rights won't be able to see ips (mod, helper).
2017-04-17 12:13:58 +02:00
def 762ca52b59 Version 10.5 2017-04-16 09:30:53 +02:00
def 9e7eb9c142 Remove /uninvite 2017-04-13 10:34:19 +02:00
def 3c9b178e73 Fix /times ratelimit 2017-04-13 09:38:53 +02:00
def d4ed1310d2 Configurable rate limit for SQL queries 2017-04-13 09:33:26 +02:00
def 407943a0a0 A bit more cautious SQL code 2017-04-13 09:26:12 +02:00
def d450678bf3 Quit even if score-threads didn't complete 2017-04-13 08:38:27 +02:00
heinrich5991 921cfb29f8 Fix use-after-free on unbind 2017-04-13 02:09:42 +02:00
heinrich5991 1b88017fc5 Fix crashbug in bind system
Restore old behavior around the bind's Get() function, return "" if
there is no bind. Fixes #730.
2017-04-13 02:09:42 +02:00
Learath2 38cd5e89a5 Revert "Missed a case. Fixes #730" 2017-04-13 01:51:00 +02:00
Learath c8acc2d286 Swap /pause and /spec around 2017-04-13 01:33:56 +02:00
Dennis Felsing 6f93be03cc Merge pull request #733 from Learath2/dd_pr_chatoverlap
Fix chat overlapping
2017-04-13 01:30:54 +02:00
Learath 0b6c6f353d Fix chat overlapping. One to go #723 2017-04-13 01:14:53 +02:00
Dennis Felsing 72e9571d57 Merge pull request #732 from Learath2/dd_pr_bindfix
Missed a case. Fixes #730
2017-04-13 01:13:24 +02:00
Learath2 30a9469df2 Missed a case. Fixes #730 2017-04-13 01:06:40 +02:00
Learath 0cafa8b813 Random tees can't load saves 2017-04-12 16:59:46 +02:00
Dennis Felsing 40d3b4071d Merge pull request #729 from Learath2/dd_pr_friendcoll
Strict checking for friends
2017-04-12 11:16:20 +02:00
Learath 9d2fb7dfda Missed one check 2017-04-12 11:13:54 +02:00
Learath ec1581f13a Strict checking for friends. Fixes #539 2017-04-12 11:04:20 +02:00
Learath 47f405e160 Remove tees that don't belong 2017-04-12 10:33:02 +02:00
Dennis Felsing d146b51189 Merge pull request #728 from Learath2/dd_pr_bindlen
Allow arbitrary length binds
2017-04-12 10:12:05 +02:00
Learath 6895b5a180 Check if the allocation succeeded. 2017-04-12 10:05:22 +02:00
Learath ae23924e81 Add arbitrary length binds. Fixes #642 2017-04-12 10:05:22 +02:00
Learath2 568b5e5603 Pointers should be set to NULL 2017-04-12 01:20:39 +02:00
Learath 389b432758 Take a blind stab at #718 2017-04-11 21:47:27 +02:00
Learath d29f2306ef Tees must be teamed up before loading 2017-04-11 21:18:26 +02:00
Learath 611b66e503 Fix a case reported in #723 2017-04-10 03:06:16 +02:00
Learath 45bc79b94b Fix alignmend... Fixes #687 2017-04-09 03:46:02 +02:00
Learath 95690a1cf7 Reimplement sv_pause_frequency 2017-04-09 01:16:48 +02:00
Learath 5626259b27 Rework pause. Fixes force_pause 2017-04-09 00:20:41 +02:00
Henritees 33cdfee821 Handle multi-line motd correctly in the console
Rewrote MOTD processing to handle both kinds of newlines correctly
and added an option to disable printing it to the console.

Closes #711.
2017-04-03 12:29:31 +02:00
Learath2 079c53471c Remove unnecessary check. Fixes #714 2017-04-02 19:39:22 +02:00
trml 1211746491 Don't use predicted position for the hook when spectating 2017-04-02 18:41:55 +02:00
HMH 4a0abf6747 Access the correct Flags variable for saving maplayers 2017-04-01 18:16:02 +02:00
Learath2 9d0e054a06 Remove heart from on reset messages. Fixes #710 2017-04-01 15:19:20 +02:00
east bffb989a11 add generated rcon password as default auth key 2017-03-29 14:56:44 +02:00
heinrich5991 1d81d56850 Introduce new, vanilla-compatible server info protocol
This means that we have a reliable and fast way to query for extended info,
while also not wasting network bandwidth.

The protocol is designed to be extensible, there's four bytes space for
encoding more request types (currently zeroed), and there's one string in each
response packet and one string for each player available (currently the empty
string).

The protocol itself has no problems with more than 64 players, although the
current client implementation will drop the player info after the 64th player,
because it uses a static array for storage.

Also fixes #130, the player list is just sorted each time new player info
arrives.
2017-03-29 12:56:13 +02:00
Learath2 ed30c0b636 Clear only on a dc. Let rcon work during map change 2017-03-28 14:24:53 +02:00
Learath2 b52ed30618 Reset input when server/map changes. Fixes #633 2017-03-28 14:24:53 +02:00
Learath2 93ac8a97b1 Only reset auth on server change 2017-03-28 01:47:24 +02:00
Learath2 80f9d7a2ca Reset the username input on server/map change. 2017-03-28 01:47:24 +02:00
HMH 7ef108c818 Fix style in some places which the previous fix missed 2017-03-23 22:28:06 +01:00
Learath2 d3bf89d7d3 Handle double click on server browser correctly. Fixes #597 2017-03-22 23:14:09 +01:00
Learath2 6377355d4a Use %g. Get rid of comparison 2017-03-22 23:11:03 +01:00
Learath2 625433ed42 Fix double slowdown. Display the correct speed. Fixes #607 2017-03-22 23:11:03 +01:00
necropotame b8e4e5beea Fix style in several places 2017-03-22 19:45:14 +01:00
Learath2 55c5c3eac6 Properly calculate the width. Fixes #699 2017-03-22 12:10:22 +01:00
Learath2 2849e23003 Fix line width. Closes #687 2017-03-22 09:56:28 +01:00
heinrich5991 f5446ca3b0 Fix unsigned/signed comparison warning when interacting with freetype 2017-03-19 17:19:59 +01:00
def 125764815b Update credits (I probably missed a few) 2017-03-16 19:17:24 +01:00
heinrich5991 b904822d57 Merge pull request #680 from necropotame/pr-i586-killborder
Fix #586 (display the killing clipping rectangle)
2017-03-16 17:00:57 +01:00
necropotame c63c54d68e Changes after heinrich5991's review of #586 - Fix code alignment 2017-03-16 16:51:52 +01:00
necropotame 5ddf0a5421 Changes after heinrich5991's review of #586 - Fix some more comments 2017-03-16 16:41:58 +01:00
necropotame 9bae313929 Changes after heinrich5991's review of #586 - Code cleanup, Fix typo, Fix bug with Y clipping 2017-03-16 16:39:29 +01:00
heinrich5991 f7dde1e061 Partially revert #681
The refactoring can cause a gameplay change, laws of associativity like
`x * (1 / z) == (x * 1) / z` don't hold for floating point numbers.
2017-03-16 10:19:08 +01:00
Ryozuki d0c317d7c7 Fix a typo and refactor the normalize function 2017-03-16 07:55:49 +01:00