Skip to content

Commit

Permalink
v1.2.7.1
Browse files Browse the repository at this point in the history
fix mission visual tags for MP: renderIcon()
  • Loading branch information
Mmtrx committed Feb 10, 2023
1 parent bf013af commit 6a15aad
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions betterContracts.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
-- handle zombie (pallet, bigbag) vehicles when dismissing contracts
-- v1.2.7.0 29.01.2023 visual tags for mission fields and vehicles.
-- show leased vehicles for active contracts
-- v1.2.7.1 10.02.2023 fix mission visual tags for MP: renderIcon().
--=======================================================================================================
SC = {
FERTILIZER = 1, -- prices index
Expand Down
2 changes: 1 addition & 1 deletion modDesc.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<modDesc descVersion="72">
<author>Mmtrx</author>
<version>1.2.7.0</version>
<version>1.2.7.1</version>
<title>
<en>Better Contracts</en>
</title>
Expand Down
3 changes: 2 additions & 1 deletion scripts/options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
-- Improve reward multiplier getReward()
-- v1.2.7.0 29.01.2023 visual tags for mission fields and vehicles.
-- show leased vehicles for active contracts
-- v1.2.7.1 10.02.2023 fix mission visual tags for MP: renderIcon().
--=======================================================================================================

--------------------- lazyNPC ---------------------------------------------------------------------------
Expand Down Expand Up @@ -472,7 +473,7 @@ function renderIcon(self, x, y, rot)
if self.field == nil or self.name == "" then return end

local bc = BetterContracts
local mission = g_missionManager.fieldToMission[self.field.fieldId]
local mission = bc.fieldToMission[self.field.fieldId]
if mission ~= nil then
local typeName = mission.type.name
-- only show if Details on and mission type not filtered off
Expand Down

0 comments on commit 6a15aad

Please sign in to comment.