mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-13 07:57:51 +00:00
Merge branch 'master' of https://github.com/rheit/zdoom
This commit is contained in:
commit
a69182f9ef
5 changed files with 7 additions and 33 deletions
|
@ -1566,7 +1566,7 @@ bool P_CheckPosition(AActor *thing, const DVector2 &pos, FCheckPosition &tm, boo
|
||||||
tm.floorpic = *rover->top.texture;
|
tm.floorpic = *rover->top.texture;
|
||||||
tm.floorterrain = rover->model->GetTerrain(rover->top.isceiling);
|
tm.floorterrain = rover->model->GetTerrain(rover->top.isceiling);
|
||||||
}
|
}
|
||||||
if (ff_bottom < tm.ceilingz && abs(delta1) >= abs(delta2))
|
if (ff_bottom < tm.ceilingz && fabs(delta1) >= fabs(delta2))
|
||||||
{
|
{
|
||||||
tm.ceilingz = ff_bottom;
|
tm.ceilingz = ff_bottom;
|
||||||
tm.ceilingpic = *rover->bottom.texture;
|
tm.ceilingpic = *rover->bottom.texture;
|
||||||
|
|
|
@ -237,8 +237,7 @@ DPSprite *player_t::GetPSprite(PSPLayers layer)
|
||||||
pspr->y = WEAPONTOP;
|
pspr->y = WEAPONTOP;
|
||||||
}
|
}
|
||||||
|
|
||||||
pspr->oldx = pspr->x;
|
pspr->firstTic = true;
|
||||||
pspr->oldy = pspr->y;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return pspr;
|
return pspr;
|
||||||
|
|
|
@ -248,9 +248,6 @@ void FConsoleWindow::AddText(const char* message)
|
||||||
AddText(color, buffer);
|
AddText(color, buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
#define CHECK_BUFFER_SPACE \
|
|
||||||
if (pos >= sizeof buffer - 3) { reset = true; continue; }
|
|
||||||
|
|
||||||
if (TEXTCOLOR_ESCAPE == *message)
|
if (TEXTCOLOR_ESCAPE == *message)
|
||||||
{
|
{
|
||||||
const BYTE* colorID = reinterpret_cast<const BYTE*>(message) + 1;
|
const BYTE* colorID = reinterpret_cast<const BYTE*>(message) + 1;
|
||||||
|
@ -268,42 +265,20 @@ void FConsoleWindow::AddText(const char* message)
|
||||||
|
|
||||||
message += 2;
|
message += 2;
|
||||||
}
|
}
|
||||||
else if (0x1d == *message) // Opening bar character
|
else if (0x1d == *message || 0x1f == *message) // Opening and closing bar characters
|
||||||
{
|
{
|
||||||
CHECK_BUFFER_SPACE;
|
buffer[pos++] = '-';
|
||||||
|
|
||||||
// Insert BOX DRAWINGS LIGHT LEFT AND HEAVY RIGHT
|
|
||||||
buffer[pos++] = '\xe2';
|
|
||||||
buffer[pos++] = '\x95';
|
|
||||||
buffer[pos++] = '\xbc';
|
|
||||||
++message;
|
++message;
|
||||||
}
|
}
|
||||||
else if (0x1e == *message) // Middle bar character
|
else if (0x1e == *message) // Middle bar character
|
||||||
{
|
{
|
||||||
CHECK_BUFFER_SPACE;
|
buffer[pos++] = '=';
|
||||||
|
|
||||||
// Insert BOX DRAWINGS HEAVY HORIZONTAL
|
|
||||||
buffer[pos++] = '\xe2';
|
|
||||||
buffer[pos++] = '\x94';
|
|
||||||
buffer[pos++] = '\x81';
|
|
||||||
++message;
|
|
||||||
}
|
|
||||||
else if (0x1f == *message) // Closing bar character
|
|
||||||
{
|
|
||||||
CHECK_BUFFER_SPACE;
|
|
||||||
|
|
||||||
// Insert BOX DRAWINGS HEAVY LEFT AND LIGHT RIGHT
|
|
||||||
buffer[pos++] = '\xe2';
|
|
||||||
buffer[pos++] = '\x95';
|
|
||||||
buffer[pos++] = '\xbe';
|
|
||||||
++message;
|
++message;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
buffer[pos++] = *message++;
|
buffer[pos++] = *message++;
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef CHECK_BUFFER_SPACE
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (0 != pos)
|
if (0 != pos)
|
||||||
|
|
|
@ -916,7 +916,7 @@ void R_ProjectSprite (AActor *thing, int fakeside, F3DFloor *fakefloor, F3DFloor
|
||||||
// too far off the side?
|
// too far off the side?
|
||||||
// if it's a voxel, it can be further off the side
|
// if it's a voxel, it can be further off the side
|
||||||
if ((voxel == NULL && (fabs(tx / 64) > fabs(tz))) ||
|
if ((voxel == NULL && (fabs(tx / 64) > fabs(tz))) ||
|
||||||
(voxel != NULL && (fabs(tx / 128) > abs(tz))))
|
(voxel != NULL && (fabs(tx / 128) > fabs(tz))))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -244,7 +244,7 @@ ACTOR Actor native //: Thinker
|
||||||
native state A_JumpIfInTargetInventory(class<Inventory> itemtype, int amount, state label, int forward_ptr = AAPTR_DEFAULT);
|
native state A_JumpIfInTargetInventory(class<Inventory> itemtype, int amount, state label, int forward_ptr = AAPTR_DEFAULT);
|
||||||
native bool A_GiveToTarget(class<Inventory> itemtype, int amount = 0, int forward_ptr = AAPTR_DEFAULT);
|
native bool A_GiveToTarget(class<Inventory> itemtype, int amount = 0, int forward_ptr = AAPTR_DEFAULT);
|
||||||
native bool A_TakeFromTarget(class<Inventory> itemtype, int amount = 0, int flags = 0, int forward_ptr = AAPTR_DEFAULT);
|
native bool A_TakeFromTarget(class<Inventory> itemtype, int amount = 0, int flags = 0, int forward_ptr = AAPTR_DEFAULT);
|
||||||
native int A_RadiusGive(class<Inventory> itemtype, float distance, int flags, int amount = 0, class<Actor> filter = "None", name species = "None", int mindist = 0, int limit = 0);
|
native int A_RadiusGive(class<Inventory> itemtype, float distance, int flags, int amount = 0, class<Actor> filter = "None", name species = "None", float mindist = 0, int limit = 0);
|
||||||
native state A_CheckSpecies(state jump, name species = "", int ptr = AAPTR_DEFAULT);
|
native state A_CheckSpecies(state jump, name species = "", int ptr = AAPTR_DEFAULT);
|
||||||
native void A_CountdownArg(int argnum, state targstate = "");
|
native void A_CountdownArg(int argnum, state targstate = "");
|
||||||
action native A_CustomMeleeAttack(int damage = 0, sound meleesound = "", sound misssound = "", name damagetype = "none", bool bleed = true);
|
action native A_CustomMeleeAttack(int damage = 0, sound meleesound = "", sound misssound = "", name damagetype = "none", bool bleed = true);
|
||||||
|
|
Loading…
Reference in a new issue