Commit Graph

5832 Commits

Author SHA1 Message Date
Matthias Mailänder
47b0b4f143 fix a division through zero 2015-06-07 13:38:04 +02:00
Matthias Mailänder
8381fbd712 fix dereference after null check 2015-06-07 13:17:33 +02:00
Matthias Mailänder
667646a984 fix null reference exception 2015-06-06 12:52:38 +02:00
Matthias Mailänder
e7a023edce catch an explicit null dereference 2015-06-06 11:12:37 +02:00
RoosterDragon
1e60a0ca76 Create only one scratch vertex buffer for rendering.
Previously several buffers were created but only one was ever used.
2015-06-05 21:32:07 +01:00
Paul Chote
bf4722fb9f Distinguish between all map cells and cells inside map bounds. 2015-06-02 21:53:25 +01:00
Oliver Brakmann
206c33ed41 Merge pull request #8226 from pchote/actor-disposal
Dispose traits when destroying an actor.
2015-06-02 19:33:22 +02:00
Oliver Brakmann
62aee92185 Merge pull request #8221 from pchote/terrain-spritelayer
Introduce a class for efficient tiled sprite rendering.
2015-06-02 18:16:05 +02:00
Matthias Mailänder
ea5003cd2d add new long WRange.RangeSquared to avoid integer overflows 2015-05-31 23:51:30 +02:00
Oliver Brakmann
e4fcb65808 Merge pull request #8315 from Mailaender/health-attacker-nre
Fixed a possible NRE in Health.InflictDamage debug logging
2015-05-31 17:04:09 +02:00
Pavel Penev
7ea0de0435 Merge pull request #8312 from Mailaender/pngloader-null-palette
Fixed a cryptic error message when feeding non-paletted PNGs into the command line utility
2015-05-31 16:49:39 +03:00
Matthias Mailänder
aade0197ff fix a possible NRE 2015-05-31 15:24:06 +02:00
Matthias Mailänder
2b0421f692 throw before triggering an NRE by accessing a null array 2015-05-31 10:19:49 +02:00
Matthias Mailänder
87a4e3da26 avoid a possible NRE 2015-05-31 10:00:39 +02:00
Pavel Penev
3666fabf1e Merge pull request #8137 from Mailaender/sanitize-player-name
Added a client side player name sanitation
2015-05-30 22:21:32 +03:00
RoosterDragon
1a89e91630 Fast case PremultiplyAlpha for opaque colors. 2015-05-29 19:50:33 +01:00
Paul Chote
8ae3afa3c5 Properly clean up traits that used to hook only death. 2015-05-29 19:21:35 +01:00
Paul Chote
4ff309811f Dispose actors when tearing down the world. 2015-05-29 19:21:34 +01:00
Paul Chote
585a43fd8f Rename Actor.Destroy/Destroyed to Dispose/Disposed. 2015-05-29 19:08:38 +01:00
Paul Chote
629f877032 Extract terrain vertex buffer into a reusable class. 2015-05-29 19:06:11 +01:00
Paul Chote
b1f4bd85d6 Accept an IntPtr for VertexBuffer.SetData. 2015-05-29 19:06:11 +01:00
Paul Chote
4df64eb18f Expose vertex components. 2015-05-29 19:06:11 +01:00
Oliver Brakmann
8b6c4a5b13 Merge pull request #8248 from Mailaender/premultiplied-geometric-renderers
Fixed transparency breakage on quad and line rendering
2015-05-29 14:11:28 +02:00
Oliver Brakmann
16a9b9284b Merge pull request #8167 from deniz1a/fix-sat-icon
Prevents satellite icons from being drawn over frozen actors.
2015-05-29 13:56:37 +02:00
Matthias Mailänder
dec7ad1ee2 Merge pull request #8268 from obrakmann/fix8262_d2k_double_remove_from_world
Fix potentially removing actors twice from world in Actor::ChangeOwner
2015-05-27 22:03:43 +02:00
Oliver Brakmann
7b3b2f85f8 Fix potentially removing actors twice from world in Actor::ChangeOwner 2015-05-26 17:16:56 +02:00
Oliver Brakmann
641213696f Merge pull request #8191 from abcdefg30/luawidget
Add a custom text display to lua
2015-05-26 00:03:08 +02:00
Oliver Brakmann
2b1c7f90a4 Merge pull request #8256 from Mailaender/voxel-fbo-nre
Fixed a dereference of an explicit null value in VoxelRenderer
2015-05-25 18:51:03 +02:00
Matthias Mailänder
1b16a51021 fix a dereference of an explicit null value 2015-05-25 17:41:55 +02:00
abcdefg30
35374d168f Add support for custom mission timers: UserInterfaceGlobal 2015-05-25 16:57:15 +02:00
abcdefg30
852ea87daa Add lua support for nullables 2015-05-25 16:54:42 +02:00
Matthias Mailänder
70fdb73127 fix missing dispose on stream in IniFile 2015-05-25 16:07:21 +02:00
Matthias Mailänder
96e2c9bb79 use premultiplied alpha on geometric renderers
to fix transparency again
2015-05-25 13:39:38 +02:00
deniz1a
106286da23 Prevents satellite icons from being drawn over frozen actors. 2015-05-25 06:31:04 +03:00
Paul Chote
322285ef66 Update NukePaletteEffect for premultiplied alpha. 2015-05-24 18:32:42 +01:00
Pavel Penev
902cd124ba Merge pull request #8149 from Mailaender/fetch-geoip-db
Automatized GeoIP database download
2015-05-24 16:43:22 +03:00
Pavel Penev
9ed7ef10b9 Merge pull request #8227 from obrakmann/fix8219_rise_of_the_undead_bridges
Fix broken bridges being initialized with a non-zero HP value
2015-05-24 15:05:29 +03:00
Oliver Brakmann
c6c9863681 Merge pull request #8176 from pchote/fix-palette-alpha
Load textures using premultiplied alpha.
2015-05-24 13:15:54 +02:00
Matthias Mailänder
d0b3e5fb8b Merge pull request #8114 from penev92/bleed_d2kUpgrades
Add D2k building upgrades
2015-05-24 08:23:28 +02:00
Pavel Penev
9e0e866199 Merge pull request #8207 from obrakmann/map-chooser-overhaul
Split maps into system and custom maps in the map chooser
2015-05-24 04:12:23 +03:00
Oliver Brakmann
d9f0ca362f Fix broken bridges being initialized with a non-zero HP value 2015-05-24 02:02:20 +02:00
Oliver Brakmann
dc08b7a90a Add buttons for map file management to map chooser 2015-05-24 01:49:30 +02:00
penev92
32bb70abca Remove DamageWarhead.DeathType in favor of DamageWarhead.DamageTypes 2015-05-24 00:15:07 +03:00
Matthias Mailänder
486c7527c9 Merge pull request #8012 from reaperrr/voiceset
Extracted actor Voices from Selectable into own Voiced trait
2015-05-23 21:59:34 +02:00
Matthias Mailänder
8e919d3215 move GeoIP functions into it's own class
extract the geoip database .gz in-game
2015-05-23 16:00:46 +02:00
Matthias Mailänder
edca755540 also sanitize server names 2015-05-23 15:07:18 +02:00
Matthias Mailänder
736b169319 sanitize player names 2015-05-23 15:07:13 +02:00
reaperrr
3777a8bca9 Moved Voice-related extensions to VoiceExts.
Note: This is a work-around until Selectable can be moved to Mods.Common, which is when the voice extensions should be moved back to ActorExts.

Pulled phrase check before foreach in PlayVoice ActorExts.
Removed superflous actor parameter from PlayVoice/PlayVoiceLocal.

Simplified PlayVoice extensions.

variant is no longer customisable, as all current usages use self.Owner.Country.Race anyway.
2015-05-23 13:46:01 +02:00
Paul Chote
5532ed4fc9 Remove now-redundant blend code. 2015-05-23 08:50:28 +01:00
Paul Chote
26fd858fc7 Use premultiplied alpha for all textures and blending. 2015-05-23 08:50:28 +01:00