Skip to content

Commit

Permalink
v1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
JuniorDjjr authored Dec 18, 2020
1 parent db57d0b commit 75ce596
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CLEOPlus/CLEOPlus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "rw/rpworld.h"
#include <set>

constexpr uint32_t CLEOPLUS_VERSION_INT = 0x01000400;
constexpr uint32_t CLEOPLUS_VERSION_INT = 0x01000500;

using namespace plugin;
using namespace std;
Expand Down
5 changes: 4 additions & 1 deletion CLEOPlus/Misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,10 @@ OpcodeResult WINAPI REQUEST_PRIORITY_MODEL(CScriptThread* thread)
// 0E99=0,load_all_priority_models_now
OpcodeResult WINAPI LOAD_ALL_PRIORITY_MODELS_NOW(CScriptThread* thread)
{
CStreaming::LoadAllRequestedModels(true);
//CStreaming::LoadAllRequestedModels(true);
CTimer::Suspend();
CStreaming::LoadAllRequestedModels(false); // "true" doesn't work, I don't know why, so, now it works just like LOAD_ALL_MODELS_NOW
CTimer::Resume();
return OR_CONTINUE;
}

Expand Down
7 changes: 4 additions & 3 deletions CLEOPlus/RadarBlip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,18 @@ namespace RadarBlip
float width = (RsGlobal.maximumWidth * *ARwidthFromWF * blipSize);
float height = (RsGlobal.maximumHeight * *ARheightFromWF * blipSize);

int spriteId = (blip->spriteId != -1) ? blip->spriteId : RADAR_SPRITE_NONE;
int spriteIdForDisplay = (blip->spriteId != -1) ? blip->spriteId : RADAR_SPRITE_PROPERTYG;
int spriteIdForLegend = (blip->spriteId != -1) ? blip->spriteId : RADAR_SPRITE_NONE;

if (CRadar::DisplayThisBlip(spriteId, -99))
if (CRadar::DisplayThisBlip(spriteIdForDisplay, -99))
{
CRect rect;
rect.left = x - width;
rect.top = y - height;
rect.right = width + x;
rect.bottom = height + y;
blip->sprite->Draw(rect, blip->color);
if (spriteId > 0) CRadar::AddBlipToLegendList(0, spriteId);
if (spriteIdForLegend != RADAR_SPRITE_NONE) CRadar::AddBlipToLegendList(0, spriteIdForLegend);
}
}

Expand Down

0 comments on commit 75ce596

Please sign in to comment.