mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-02-28 14:11:13 +00:00
- Blood: Replace use of non-standard strupr()
from 754554a493
with an FString object.
This commit is contained in:
parent
3b82a08123
commit
9fad44bab2
1 changed files with 4 additions and 4 deletions
|
@ -3239,15 +3239,15 @@ bool condCmp(int val, int arg1, int arg2, int comOp) {
|
||||||
|
|
||||||
void condError(XSPRITE* pXCond, const char* pzFormat, ...) {
|
void condError(XSPRITE* pXCond, const char* pzFormat, ...) {
|
||||||
|
|
||||||
char buffer[256]; char buffer2[512]; char condType[32] = "Unknown";
|
char buffer[256]; char buffer2[512]; FString condType = "Unknown";
|
||||||
for (int i = 0; i < 7; i++) {
|
for (int i = 0; i < 7; i++) {
|
||||||
if (pXCond->data1 < gCondTypeNames[i].rng1 || pXCond->data1 >= gCondTypeNames[i].rng2) continue;
|
if (pXCond->data1 < gCondTypeNames[i].rng1 || pXCond->data1 >= gCondTypeNames[i].rng2) continue;
|
||||||
sprintf(condType, gCondTypeNames[i].name);
|
condType = gCondTypeNames[i].name;
|
||||||
strupr(condType);
|
condType.ToUpper();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
sprintf(buffer, "\n\n%s CONDITION RX: %d, TX: %d, SPRITE: #%d RETURNS:\n", condType, pXCond->rxID, pXCond->txID, pXCond->reference);
|
sprintf(buffer, "\n\n%s CONDITION RX: %d, TX: %d, SPRITE: #%d RETURNS:\n", condType.GetChars(), pXCond->rxID, pXCond->txID, pXCond->reference);
|
||||||
va_list args;
|
va_list args;
|
||||||
va_start(args, pzFormat);
|
va_start(args, pzFormat);
|
||||||
vsprintf(buffer2, pzFormat, args);
|
vsprintf(buffer2, pzFormat, args);
|
||||||
|
|
Loading…
Reference in a new issue