fix(Blips): Get blip location by color (#146)

Co-authored-by: Yimura <andreas.maerten@scarlet.be>
This commit is contained in:
Aure7138 2022-05-03 03:15:05 +08:00 committed by GitHub
parent a4f00f70b3
commit be7e00f4f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();