Repository navigation
Commit a6b3f0b
committed
Fix broken check for giving too many trucks to a player. Caused desynchs due to players not agreeing who owned what.
The check against selectedPlayer was incorrect, it caused clients with max trucks + 1 to not believe anyone could give trucks to anyone else.
Introduced in e6cd099.
Changelog: Really fix truck limit when giving trucks.1 parent 5098b36 commit a6b3f0b
1 file changed
Lines changed: 30 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4900 | 4900 | | |
4901 | 4901 | | |
4902 | 4902 | | |
| 4903 | + | |
| 4904 | + | |
| 4905 | + | |
| 4906 | + | |
| 4907 | + | |
| 4908 | + | |
| 4909 | + | |
| 4910 | + | |
| 4911 | + | |
| 4912 | + | |
| 4913 | + | |
| 4914 | + | |
| 4915 | + | |
| 4916 | + | |
| 4917 | + | |
| 4918 | + | |
| 4919 | + | |
| 4920 | + | |
| 4921 | + | |
| 4922 | + | |
| 4923 | + | |
| 4924 | + | |
| 4925 | + | |
| 4926 | + | |
| 4927 | + | |
| 4928 | + | |
| 4929 | + | |
| 4930 | + | |
4903 | 4931 | | |
4904 | 4932 | | |
4905 | 4933 | | |
| 4934 | + | |
| 4935 | + | |
4906 | 4936 | | |
4907 | 4937 | | |
4908 | | - | |
4909 | | - | |
4910 | | - | |
4911 | | - | |
4912 | | - | |
4913 | | - | |
4914 | | - | |
4915 | | - | |
4916 | 4938 | | |
4917 | 4939 | | |
4918 | 4940 | | |
| |||
0 commit comments