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
|
||||
#include "gta/enums.hpp"
|
||||
#include "natives.hpp"
|
||||
#include "script.hpp"
|
||||
|
||||
@ -10,7 +9,7 @@ namespace big::blip
|
||||
Blip blip;
|
||||
for (blip = HUD::GET_FIRST_BLIP_INFO_ID(sprite);
|
||||
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)
|
||||
) script::get_current()->yield();
|
||||
|
||||
|
Reference in New Issue
Block a user