ChillerDragon
6172a9dca0
Use the float type explicitly
2019-07-08 23:08:42 +02:00
heinrich5991
f31e081bd4
Remove all checking for the gametype in the game
...
OK, maybe not actually remove because it is kept for fallback when the
new method isn't available.
The whole gametype parsing business had the same downsides as user agent
parsing on the web, hence I removed it while keeping behavior the same.
This allows servers to explicitly opt in or out of certain bug
workarounds and other client behavior. This increases the complexity of
different configurations that are available in the client (which is a
bad thing).
2019-06-14 00:28:59 +02:00
Learath
6c371a9a57
Even more refactoring
2019-04-27 01:11:15 +03:00
Learath
93d14a1eca
Inconvenience for windows
2019-04-26 22:36:49 +03:00
Dennis Felsing
cde07b420b
Implement changes suggested by -Wuseless-cast
...
But don't enable it yet because I'm not sure what the best way is.
2019-04-11 19:54:43 +02:00
12pm
4efc0e3b82
Make world offset calculation more accurate
...
Noticed that after some time groups with a parallax different than 100 were incorrectly rendered in the editor
2019-04-03 01:05:38 +02:00
12pm
0abbba4c5d
Add non-destructive brush drawing
...
New brush draw mode that doesn't override existing tiles. Empty brush still acts as an eraser. Button and ctrl+d shortcut to toggle it.
2019-03-26 19:19:25 +01:00
def
c0b60979ec
style
2018-10-29 22:09:11 +01:00
jupeyy
c666417fa0
less code
2018-10-29 08:44:55 +01:00
jupeyy
536bb4ad3d
check minimum for width and height seperatelly
2018-10-29 04:21:35 +01:00
Jupeyy
d7bb03ee19
don't render all border all the time
2018-08-02 18:26:12 +02:00
yangfl
81a39c229b
Fix typo
2018-07-10 17:29:02 +08:00
Jupeyy
0930a3b7de
buffer quads, and use the new backend system (+ fix a bug when
...
rendering)
2018-03-13 21:57:46 +01:00
yangfl
1620fc9b0f
Fix typo
2018-02-07 16:10:40 +08:00
Jupeyy
15cc8e2dc8
use type that can hold any pointer size
2018-01-16 10:18:14 +01:00
Jupeyy
e9a2fc1d6e
reduce RAM allocation for map buffering, and fix forground layer count
2018-01-16 09:35:28 +01:00
bors[bot]
41f6140179
Merge #945
...
945: Don't use nonstandard `#pragma pack` r=Learath2 a=heinrich5991
It's not needed in that place anyway.
2017-11-26 16:27:50 +00:00
heinrich5991
be80ccb7d6
Don't use nonstandard #pragma pack
...
It's not needed in that place anyway.
2017-11-18 00:24:44 +01:00
Jupeyy
f15f41e654
remove extension limit for tile layers
2017-10-28 02:04:53 +02:00
Jupeyy
493d2dc9d8
add speedups correctly to the border tiles, to allow them beeing
...
displayed on extended range
2017-10-28 00:52:54 +02:00
Jupeyy
863385e208
fix the code layout
2017-10-25 15:42:06 +02:00
Jupeyy
3c8f937b79
Don't draw invalid tiles
2017-10-24 20:41:11 +02:00
Jupeyy
5389dd9666
fix border amount for right and bottom border lines
2017-10-14 16:37:48 +02:00
Jupeyy
add339d210
not needed, because of restrictions before
2017-10-11 11:18:03 +02:00
Jupeyy
966b388b0e
clamp speedup arrows images
2017-10-10 12:08:36 +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
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
fc706a820c
only check gametiles for DDNet server type
2017-09-16 03:45:24 +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
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
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
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
09552a6d9f
Get rid of trailing whitespaces
2017-02-21 19:11:43 +03:00
necropotame
b9e7728e2e
Skip clipped groups that are outside the screen
2017-01-05 10:24:52 +01:00
def
61e47422f6
Clean up debug messages a bit (lower case, no useless errors)
2016-05-02 21:35:32 +02:00
def
4761608329
Input fixes from TW master for mouse wheel
2016-04-30 20:11:26 +02:00
def
db8a126315
Merge swick's SDL2 branch
2016-04-29 21:55:48 +02:00
Tim Schumacher
878f8ef872
Merge pull request #343 from cinaera/pr_layer_render
...
Fix duplicated rendering of the game layers and cleanup outdated code
2015-10-21 02:50:03 +02:00
BeaR
37c6454473
Fix duplicated rendering of the game layers and cleanup outdated code
2015-10-05 12:51:19 +02:00
Chairn
8b8ba7b860
Added variable for tile background. Improved a lil bit maplayers.
2015-08-27 00:52:50 +02:00
def
db2256e827
Fix a few whitespace-at-end-of-file issues
2015-08-22 15:27:41 +02:00
def
6e8ada1ac8
Fix whitespaces a bit
2015-07-09 02:12:35 +02:00
BeaR
475c637996
Play sounds and envelopes also on pause
2014-10-31 16:10:09 +01:00