mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-12-06 18:08:31 +00:00
More vector return value stuff
This commit is contained in:
parent
860326b312
commit
e20a0cf072
@ -1461,11 +1461,16 @@ namespace SourceHook
|
||||
|
||||
bool probablyVector = (pi.size == 12);
|
||||
|
||||
if (hasSpecialFunctions || tooBig || probablyVector)
|
||||
if (hasSpecialFunctions || tooBig)
|
||||
{
|
||||
pi.flags |= PassInfo::PassFlag_RetMem;
|
||||
return true;
|
||||
}
|
||||
else if (probablyVector)
|
||||
{
|
||||
pi.flags |= PassInfo::PassFlag_RetReg;
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user