Remove unused adjustments
0 lines of code changed in 1 file:
Avoid unnecessary nested call of add_style_to_textbuffer()
6 lines of code changed in 1 file:
Only load base style once
10 lines of code changed in 2 files:
Change key handling to reduce lag after holding down a key
17 lines of code changed in 2 files:
Initialize mapdata only after mapdata_set_size()
Avoid allocating map data on client init and again after loading config,
because map data is only used after negotiating a view size with the
server. Add corresponding mapdata_free() to deallocate map data after
disconnecting from a server.
17 lines of code changed in 4 files:
Fix use after free
1 lines of code changed in 1 file:
Remove unused globals
0 lines of code changed in 2 files:
Use macro to access mapdata cells
52 lines of code changed in 2 files:
Reduce size of struct MapCell and BigCell
The client does not actually use any of the animation info fields in the
tail MapCellLayer structs. Reduce the size of struct MapCell by removing
these unused fields.
13 lines of code changed in 2 files:
Refactor map data
Rename x to width and y to height in struct Map. Replace uses of
FOG_MAP_SIZE with either width or height. Separate map data allocation
into separate function.
108 lines of code changed in 2 files:
Reduce bit width for smooth info
3 lines of code changed in 2 files:
Simplify event loop tick handling
Handle all time-based events in client_tick(), which is only called when
a tick is received from the server. Drop support for servers that do not
support the tick command, since it was already broken (the client would
have never called redraw()).
Add a comment explaining that supporting tickless servers again only
requires adding a timer event that calls client_tick().
30 lines of code changed in 5 files:
Remove unused header
0 lines of code changed in 1 file: