Oliver Brakmann
30cf8c204b
Fix desync when removing smudges
...
The cause of the crash was that the `RemoveSmudge` method only invokes `SharedRandom` in the else-branch of an if condition that is only taken when the `RenderPlayer` has fog visibility on the location (locations the `RenderPlayer` can see get removed from `dirty` in `TickRender`).
To add insult to injury, the `Type` field does not even need to get set since we are only using the `Sprite` field's `null` value as a marker to be picked up by the `TickRender` method. The `Type` field is only ever used twice in `AddSmudge`, in a branch of an if-condition that will not be taken when the `Sprite` field is null, which we set explicitly. The same holds true for the `Depth` field.
2016-07-26 21:46:18 +02:00
..
2016-07-12 20:17:45 -03:00
2016-07-04 11:50:35 +02:00
2016-07-19 20:20:38 +02:00
2016-07-12 10:09:49 +02:00
2016-07-12 10:09:49 +02:00
2016-06-04 10:03:06 +01:00
2016-07-12 10:09:49 +02:00
2016-04-09 13:41:08 -04:00
2016-07-12 10:09:49 +02:00
2016-04-02 13:00:35 +02:00
2016-04-02 14:36:26 +02:00
2016-07-16 14:26:43 +02:00
2016-07-12 10:09:49 +02:00
2016-07-03 16:21:07 +02:00
2016-06-12 14:25:23 +02:00
2016-07-26 21:46:18 +02:00
2016-02-21 16:30:48 +00:00
2016-02-21 16:30:48 +00:00
2016-07-02 16:02:00 +02:00
2016-07-02 16:02:00 +02:00
2016-02-21 16:30:48 +00:00
2016-02-21 16:30:48 +00:00
2016-06-25 12:42:42 +02:00
2016-07-12 10:09:49 +02:00
2016-02-21 16:30:48 +00:00
2016-04-15 20:43:04 +02:00
2016-02-21 16:30:48 +00:00
2016-07-12 10:09:49 +02:00
2016-03-28 17:20:49 +02:00
2016-07-19 20:20:38 +02:00
2016-06-15 20:35:22 +01:00
2016-06-21 21:38:19 +01:00
2016-06-21 21:38:19 +01:00
2016-02-21 16:30:48 +00:00
2016-07-02 16:02:00 +02:00
2016-07-12 10:09:49 +02:00
2016-02-21 16:30:48 +00:00
2016-02-21 16:30:48 +00:00
2016-02-23 22:16:52 +01:00
2016-02-21 16:30:48 +00:00
2016-02-21 16:30:48 +00:00
2016-07-16 14:26:43 +02:00
2016-02-21 16:30:48 +00:00
2016-05-26 19:28:38 +02:00
2016-02-21 16:30:48 +00:00
2016-05-26 11:54:48 +02:00
2016-02-21 16:30:48 +00:00
2016-04-05 16:28:33 +02:00
2016-02-21 16:30:48 +00:00
2016-07-07 08:57:44 -05:00
2016-07-12 10:09:49 +02:00
2016-06-12 14:25:26 +02:00
2016-02-21 16:30:48 +00:00
2016-02-21 16:30:48 +00:00
2016-07-19 20:20:38 +02:00
2016-05-14 18:54:44 +01:00
2016-07-12 10:09:49 +02:00
2016-07-10 15:30:17 +02:00
2016-02-21 16:30:48 +00:00
2016-02-21 16:30:48 +00:00
2016-02-21 16:30:48 +00:00
2016-04-09 11:59:54 -04:00
2016-07-16 14:26:43 +02:00
2016-02-21 16:30:48 +00:00
2016-03-04 15:13:55 +01:00
2016-04-10 09:41:12 -04:00
2016-02-21 16:30:48 +00:00
2016-02-21 16:30:48 +00:00
2016-02-21 16:30:48 +00:00
2016-02-21 16:30:48 +00:00
2016-06-25 16:29:47 +01:00
2016-02-21 16:30:48 +00:00
2016-06-18 11:37:57 +02:00
2016-02-21 16:30:48 +00:00
2016-02-21 16:30:48 +00:00
2016-02-21 16:30:48 +00:00
2016-02-21 16:30:48 +00:00
2016-02-21 16:30:48 +00:00
2016-02-21 16:30:48 +00:00
2016-03-30 02:46:19 +02:00
2016-03-30 02:46:19 +02:00
2016-03-30 02:46:19 +02:00
2016-02-21 16:30:48 +00:00
2016-02-21 16:30:48 +00:00
2016-06-04 13:47:51 +02:00
2016-04-15 20:43:04 +02:00
2016-06-21 19:13:25 +02:00
2016-04-24 20:12:49 +02:00
2016-02-21 16:30:48 +00:00
2016-02-21 16:30:48 +00:00
2016-02-21 16:30:48 +00:00
2016-03-28 16:15:44 -05:00
2016-02-21 16:30:48 +00:00
2016-07-12 10:09:49 +02:00
2016-04-15 20:43:04 +02:00
2016-02-21 16:30:48 +00:00
2016-05-23 23:57:18 +02:00
2016-07-12 10:09:49 +02:00
2016-02-21 16:30:48 +00:00
2016-07-19 20:20:38 +02:00
2016-04-22 13:01:02 +02:00
2016-06-15 20:36:24 +01:00
2016-02-21 16:30:48 +00:00
2016-02-21 16:30:48 +00:00
2016-02-21 16:30:48 +00:00
2016-04-15 20:43:04 +02:00
2016-07-04 18:32:01 +02:00
2016-02-21 16:30:48 +00:00
2016-02-21 16:30:48 +00:00
2016-06-26 20:30:06 +02:00