File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 5
5
#define MAXTEXTURENAME 16
6
6
#define MIPLEVELS 4
7
7
8
- #define MAX_KEYS_PER_ENT 64 // just guessing
8
+ #define MAX_KEYS_PER_ENT 128 // just guessing
9
9
#define MAX_KEY_LEN 256 // not sure if this includes the null char
10
10
#define MAX_VAL_LEN 4096 // not sure if this includes the null char
11
11
Original file line number Diff line number Diff line change @@ -2124,10 +2124,10 @@ void Gui::drawKeyvalueEditor_SmartEditTab(Entity* ent) {
2124
2124
2125
2125
if (fgdClass != NULL ) {
2126
2126
2127
- static InputData inputData[128 ];
2127
+ static InputData inputData[MAX_KEYS_PER_ENT ];
2128
2128
static int lastPickCount = 0 ;
2129
2129
2130
- for (int i = 0 ; i < fgdClass->keyvalues .size () && i < 128 ; i++) {
2130
+ for (int i = 0 ; i < fgdClass->keyvalues .size () && i < MAX_KEYS_PER_ENT ; i++) {
2131
2131
KeyvalueDef& keyvalue = fgdClass->keyvalues [i];
2132
2132
string key = keyvalue.name ;
2133
2133
if (key == " spawnflags" ) {
Original file line number Diff line number Diff line change @@ -1001,7 +1001,7 @@ void Renderer::cameraPickingControls() {
1001
1001
draggingAxis = -1 ;
1002
1002
applyTransform ();
1003
1003
1004
- if (pickInfo.valid && pickInfo.ent && undoEntityState->getOrigin () != pickInfo.ent ->getOrigin ()) {
1004
+ if (pickInfo.valid && pickInfo.ent && undoEntityState && undoEntityState ->getOrigin () != pickInfo.ent ->getOrigin ()) {
1005
1005
pushEntityUndoState (" Move Entity" );
1006
1006
}
1007
1007
}
You can’t perform that action at this time.
0 commit comments