Redix
0891ce2812
Use move instead of copy assignment operator for the ghost
2017-09-28 16:42:47 +02:00
Redix
c832beca63
Remove 30 min limit from the ghost
2017-09-28 16:02:01 +02:00
Redix
a3a82b6571
Move filename clearing function to base lib
2017-09-28 16:02:01 +02:00
Redix
d37bb5e65a
Fix ghost menu localization
2017-09-28 16:02:01 +02:00
Redix
0c6026c22e
Hide ghost menu buttons if there are no ghosts
2017-09-28 16:02:00 +02:00
Redix
0b4d629dab
Improved ghost memory management
2017-09-28 16:02:00 +02:00
Redix
216e5654e8
Added config variables for server controlled ghost and race recording
2017-09-28 16:02:00 +02:00
Redix
17f1978740
Use the race timer for the demo recorder as well
2017-09-28 16:02:00 +02:00
Redix
491cfdb93e
A few fixes in ghost and race recorder code
2017-09-28 16:02:00 +02:00
Redix
1efa8023ea
Use race timer for ghosts if available
2017-09-28 16:02:00 +02:00
Redix
4c8c546c35
Improved ghost start accuracy
2017-09-28 16:01:59 +02:00
Redix
ac234ad3ee
Write the correct player name into ghosts that are saved from menu
2017-09-28 16:01:59 +02:00
Redix
ffaa077c72
Improved ghost skin handling a bit
2017-09-28 16:01:59 +02:00
Redix
456a67fe2d
Start race recording immediately so we can also record the preparation steps
2017-09-28 16:01:59 +02:00
Redix
0721b895ae
Make sure that we have a free ghost slot for new records
2017-09-28 16:01:58 +02:00
Redix
353190588b
Disable ghost and race recorder during demo playback
2017-09-28 16:01:58 +02:00
Redix
1e845a4020
Added reload button in ghost menu
2017-09-28 16:01:58 +02:00
Redix
5b3e9e4bbf
Improved ghost file management
2017-09-28 16:01:58 +02:00
Redix
d09e825065
Use existing code for rendering the ghost
2017-09-28 16:01:58 +02:00
Redix
5cc0d16029
Reworked the race recorder
2017-09-28 16:01:57 +02:00
Redix
9e52957423
Only restart ghost and race demo on non-solo servers when crossing the start line again
2017-09-28 16:01:57 +02:00
Redix
1c377ed00f
Added Fastcap support for ghost and race demo
2017-09-28 16:01:57 +02:00
Redix
bd3e81d5e0
Use snapshot values instead of predicted ones for the ghost and also save the tick
...
This makes the ghosts more resistant against lags
2017-09-28 16:01:57 +02:00
Redix
3c8217b39c
Mark own ghost with color
2017-09-28 16:01:56 +02:00
Redix
4f57b33524
Use static array for active ghosts
...
Improve ghost file handling
2017-09-28 16:01:56 +02:00
Redix
c189678e44
Cleaned up the ghost component and made it use the ghost recorder and loader
2017-09-28 16:01:56 +02:00
Jupeyy
baa69676ea
fix warnings
2017-09-27 15:06:47 +02:00
Jupeyy
7aa547946b
more warning fixes
2017-09-27 15:01:38 +02:00
Jupeyy
463944b143
fix code pattern mistakes and warnings
2017-09-27 14:52:06 +02:00
Jupeyy
e820a36899
don't use average FPS
2017-09-27 12:21:29 +02:00
Jupeyy
6185c05be4
for tilelayers, go thorugh them layer by layer to reduce GPU overload by
...
only render visible areas
2017-09-27 12:20:23 +02:00
Jupeyy
9fd1290734
auto adjust font size for entity overlay
2017-09-27 12:19:39 +02:00
Redix
43f246f174
Made int packing functions safe
2017-09-17 02:36:50 +02:00
heinrich5991
42934fe102
Remove statically detectable float divisions by zero
...
This should fix the warning in MSVS.
2017-09-16 18:34:26 +02:00
Dennis Felsing
43d0299a45
Merge branch 'master' into pr_ddnet_fix_msvs_warnings
2017-09-16 11:17:39 +02:00
Jupeyy
fc706a820c
only check gametiles for DDNet server type
2017-09-16 03:45:24 +02:00
Jupeyy
31844d3353
set max width for custom text texture upload and fixing alignments for
...
texture updates
2017-09-15 03:01:26 +02:00
Jupeyy
5c7c09d380
fixing most wrong code pattern
2017-09-13 20:33:58 +02:00
Jupeyy
fd83d2834d
dont draw layer if our view is out of the layers range
2017-09-12 23:16:01 +02:00
Jupeyy
c437b5bb89
use 64 bit variable
2017-09-12 21:06:12 +02:00
Jupeyy
629bf2c5f9
Merge branch 'master' of https://github.com/ddnet/ddnet
2017-09-12 20:24:58 +02:00
Jupeyy
0caa70f0a1
support buffering of tile layers, draw them with the buffer objects and
...
some optimazations to border drawing
2017-09-12 20:22:18 +02:00
Jupeyy
9d2a625363
create overlay textures for entity overlays, instead of rendering glyphs
2017-09-12 20:15:37 +02:00
Jupeyy
6dc4d1e578
only allow a maximal zoom factor to make sure no bufferoverflow happens
2017-09-12 20:14:34 +02:00
Jupeyy
93138c1fba
make background class inherited from maplayers and change some things in
...
maplayers instead, so the background class can profit from buffering
2017-09-12 20:13:53 +02:00
def
73d9ad7615
Really only download ddnet-info.json at correct time
2017-09-08 22:16:00 +02:00
def
c2c453bd45
Make sending name to info.ddnet.tw optional, show dialog at start and some minor fixes
2017-09-07 20:51:46 +02:00
heinrich5991
4d96090770
Fix MSVS warnings
...
```
warning C4291: no matching operator delete found; memory will not be freed if initialization throws an exception
warning C4305: truncation from 'double' to 'float'
warning C4805: unsafe mix of type 'bool' and type 'int' in operation
```
2017-09-06 10:54:29 +02:00
def
278c1ee198
Add Toggle ghost control ( fixes #823 )
2017-09-03 19:23:59 +02:00
def
caec69abc1
RequestDDNetInfo in ingame menu too
2017-09-03 18:17:21 +02:00
def
89ed22e8d8
Introduce ddnet-info.json
...
- Single json file containing all information for the client
- Fetched from https://info.ddnet.tw/info?name=deen
- Replaces versionsrv, news, ddnet-maps.json and ddnet-ranks.json
- Servers are sorted by most popular ones for respective player
- Always stays < 100 ms response time, compared to occasional 50 s for
old ddnet-ranks.json
2017-09-03 17:42:04 +02:00
def
7b6317a5d6
buffer sizes
2017-09-03 08:53:54 +02:00
def
862e26dd08
Clean up time handling a bit
2017-09-03 08:48:21 +02:00
def
e64e59a839
semaphore instead of busy waiting in CJobPool
2017-09-02 12:30:55 +02:00
def
583421b42d
Revert "fixed sprite rendering. Closes #834 "
...
This reverts commit 43af1fdb5f
.
2017-08-31 22:03:33 +02:00
heinrich5991
659e1ff527
Merge pull request #853 from Redix/pr_ghost_time
...
Ghost and Race demo time extraction fix
2017-08-31 12:31:20 +02:00
Redix
affa3faeec
Only use integers for ghost and race demo handling
...
Ghosts still use floats internally
2017-08-31 03:22:08 +02:00
Redix
cf09b6b08b
Use -1 as invalid for time parsing functions
2017-08-31 01:13:26 +02:00
Redix
a396e40c5e
Move race helper functions to own cpp file
...
Fix some style issues
2017-08-31 00:17:16 +02:00
def
040fc9ca32
Implement right click and middle click on country and type filters
...
Right click: exclusively activate one
Middle click: reset (reenable all)
2017-08-30 22:36:39 +02:00
Redix
b6a3a42aa6
Use the time parsing functions for race demo name parsing
2017-08-30 22:10:43 +02:00
def
a1d2ecb6de
Empty when no rank
2017-08-30 21:50:09 +02:00
Redix
f1f7e4e30b
Fix ghost and race recorder time parsing
2017-08-30 21:44:27 +02:00
def
16f3ddc5a7
Show if user has rank on map in browser (+filter)
...
UI implementation by timakro
2017-08-30 21:34:04 +02:00
Dennis Felsing
25a5eff1f8
Merge pull request #847 from heinrich5991/pr_ddnet_uncompressed_datasize
...
Rename `GetUncompressedDataSize` to `GetDataSize`
2017-08-30 16:34:02 +02:00
oy
43af1fdb5f
fixed sprite rendering. Closes #834
2017-08-30 16:32:39 +02:00
heinrich5991
2682480f8a
Rename GetUncompressedDataSize
to GetDataSize
...
Also rename the old `GetDataSize` to `GetFileDataSize`. `GetDataSize`
now returns the actual data size, not the data size before
decompression.
2017-08-30 08:36:17 +02:00
def
0b5dcdc478
Disable vsync by default and warn about possible delay
2017-08-08 19:53:16 +02:00
def
5d8a0ddc1e
Add time in console
2017-08-04 22:38:22 +02:00
Learath2
4622ab4cb6
Merge pull request #814 from heinrich5991/pr_ddnet_fix_cmake_mac
...
Fix the CMake Mac build
2017-07-30 11:38:12 +02:00
heinrich5991
6247aa0c7f
Enable -Wextra
and -Wformat=2
...
Also annotate `dbg_msg`, `str_format` and `str_timestamp_ex` so that the
compiler can determine whether the format strings are correct.
Fix the compiler warnings generated by these extra warnings -- some of
them were security issues.
2017-07-27 20:38:17 +02:00
Marcel Herd
d513af6a42
Removed default bind for home key (kill)
...
Kill is already bound to K by default, binding it on home as well doesn't really have any purpose. (?)
Furthermore, the home key is right next to page up which is bound to toggling entities.
It is very easy to accidentally hit home instead of page up, which is highly frustrating.. therefore I suggest removing this duplicate binding.
2017-07-26 20:43:26 +02:00
heinrich5991
fd8bccb0f4
Fix the CMake Mac build
...
Fixes #805 .
2017-07-26 04:30:56 +02:00
def
379f060126
Version 10.7.1
2017-07-25 19:09:05 +02:00
def
a9d3f45b25
Add ui_close_window_after_changing_setting
2017-07-25 19:08:16 +02:00
def
8d621dfc00
Add kitty skins (by Ravie + fuzzy ninja by patwo.*)
2017-07-25 00:11:37 +02:00
def
a9498b15cb
Fat skins
2017-07-25 00:11:37 +02:00
heinrich5991
1ebb4f89a6
Reopen: Add a flag for rcon login via username ( #800 )
...
This uses an extended protocol message to signal that rcon
authentication might require a username, allowing the client to enable
the username prompt.
Add a forgotten logout on key update
2017-07-24 21:43:55 +02:00
def
147005ea42
ask before overwriting demo file when slicing ( fixes #806 )
2017-07-24 18:33:11 +02:00
def
bcec0f1bb1
ctrl-f to search, ctrl-x to exclude, ctrl-r to reason
2017-07-24 18:05:19 +02:00
HMH
f2ac4a02ce
use str_append for appending strings
...
this fixes corrupted stat csvs as str_format does not work with same
source and destination
2017-07-24 15:27:30 +02:00
def
ec885f3e25
Fix layout
2017-07-22 22:43:20 +02:00
def
f09a0f640f
Fix mouse sensitivity setting dialog and introduce new one for ui mouse sens (#fixes 804)
2017-07-22 22:31:14 +02:00
def
d50b39c530
Fix controls rectangle overlapping topbar and being clickable outside of scope
2017-07-22 17:35:30 +02:00
def
2d68aed009
More settings in controls menu. use listbox ( fixes #802 )
2017-07-22 13:41:18 +02:00
def
b57ffa429e
Use scancodes instead of keycodes for input ( fixes #796 , please test)
2017-07-21 19:53:49 +02:00
def
35befec54c
Clean up key binding a bit
2017-07-21 19:32:32 +02:00
def
f352daf00d
Allow moving mouse while spectating and typing ( fixes #798 )
2017-07-21 19:24:18 +02:00
def
f3a44995cf
Don't stop movement after opening player list
2017-07-15 19:53:29 +02:00
def
fba3815ddc
Only send password on connection when explicitly asked to ( fixes #788 )
2017-07-15 17:29:20 +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
8b5ee98193
Handle input reset on chat correctly on DDNet servers and other servers
2017-07-10 22:24:40 +02:00
def
66f6f16e81
Windows DPI fixes #2
2017-07-09 09:44:07 +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
36d5c8d608
string toggling supports escaped strings; also some code cleanup
2017-07-08 11:03:51 +02:00
def
37a08e8ef0
Support pageup, pagedown, home, end buttons in menus
2017-07-04 22:07:02 +02:00
def
e4b3c17829
Add option to disable long pain sound (used when shooting in freeze)
2017-06-06 18:58:23 +02:00
eeeee
2797227063
also remove references to CGameContext from CServer
2017-06-05 22:31:56 -07: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
27074e926a
Further cleanup
2017-06-02 19:44:14 +02:00
def
ac481a972c
Heuristic to speed up ghost loading on map change
2017-06-01 21:26:59 +02:00
Valentin Lorentz
191f0e7f3d
Hide empty broadcast messages.
2017-05-20 13:59:39 +02:00
def
569f17e3f3
No need to localize icons
2017-05-17 19:11:32 +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
728e548f55
Merge pull request #754 from SheikhZayx/master
...
CSV file instead of statboard screenshot
2017-05-14 11:49:46 +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
d3fault
592d2d7556
Add show angle in debug
2017-04-24 14:11:22 -07:00
d3fault
f5c4a6b578
Add show more precise coords in debug
2017-04-24 04:15:17 -07: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
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
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
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
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
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
trml
1211746491
Don't use predicted position for the hook when spectating
2017-04-02 18:41:55 +02:00
Learath2
9d0e054a06
Remove heart from on reset messages. Fixes #710
2017-04-01 15:19:20 +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
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
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
necropotame
6f58c49f7d
Fix #586 (display the killing clipping rectangle)
2017-03-15 12:06:13 +01:00
Learath2
3bd94b9ada
Forgot m_Friend isn't initialized, also align the messages
2017-03-12 22:32:05 +01:00
Learath2
c81f53ab6b
Forgot CID can be -1
2017-03-12 17:37:16 +01:00
Learath2
9919173ceb
Just color the heart preserving team information. Fixes #606
2017-03-10 18:49:39 +01:00