fix(Blips): Get blip location by color (#146)
Co-authored-by: Yimura <andreas.maerten@scarlet.be>
This commit is contained in:
parent
a4f00f70b3
commit
be7e00f4f6
@ -1,5 +1,4 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "gta/enums.hpp"
|
|
||||||
#include "natives.hpp"
|
#include "natives.hpp"
|
||||||
#include "script.hpp"
|
#include "script.hpp"
|
||||||
|
|
||||||
@ -10,7 +9,7 @@ namespace big::blip
|
|||||||
Blip blip;
|
Blip blip;
|
||||||
for (blip = HUD::GET_FIRST_BLIP_INFO_ID(sprite);
|
for (blip = HUD::GET_FIRST_BLIP_INFO_ID(sprite);
|
||||||
HUD::DOES_BLIP_EXIST(blip) &&
|
HUD::DOES_BLIP_EXIST(blip) &&
|
||||||
color != -1 && HUD::GET_BLIP_COLOUR(blip);
|
color != -1 && HUD::GET_BLIP_COLOUR(blip) != color;
|
||||||
blip = HUD::GET_NEXT_BLIP_INFO_ID(sprite)
|
blip = HUD::GET_NEXT_BLIP_INFO_ID(sprite)
|
||||||
) script::get_current()->yield();
|
) script::get_current()->yield();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user