File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream
Generals/Code/GameEngine/Source/GameClient/MessageStream Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -170,11 +170,7 @@ GameMessageDisposition PlaceEventTranslator::translateGameMessage(const GameMess
170
170
// translate the screen position of start to world target location
171
171
TheTacticalView->screenToTerrain ( &anchorStart, &world );
172
172
173
- // get the source object ID of the thing that is "building" the object
174
- ObjectID builderID = INVALID_ID;
175
173
Object *builderObj = TheGameLogic->findObjectByID ( TheInGameUI->getPendingPlaceSourceObjectID () );
176
- if ( builderObj )
177
- builderID = builderObj->getID ();
178
174
179
175
// Kris: September 27, 2002
180
176
// Make sure we have enough CASH to build it! It's possible that between the
@@ -209,6 +205,8 @@ GameMessageDisposition PlaceEventTranslator::translateGameMessage(const GameMess
209
205
break ;
210
206
}
211
207
208
+ DEBUG_ASSERTCRASH (builderObj != NULL , (" builderObj is NULL" ));
209
+
212
210
// check to see if this is a legal location to build something at
213
211
LegalBuildCode lbc;
214
212
lbc = TheBuildAssistant->isLocationLegalToBuild ( &world,
Original file line number Diff line number Diff line change @@ -181,11 +181,7 @@ GameMessageDisposition PlaceEventTranslator::translateGameMessage(const GameMess
181
181
// translate the screen position of start to world target location
182
182
TheTacticalView->screenToTerrain ( &anchorStart, &world );
183
183
184
- // get the source object ID of the thing that is "building" the object
185
- ObjectID builderID = INVALID_ID;
186
184
Object *builderObj = TheGameLogic->findObjectByID ( TheInGameUI->getPendingPlaceSourceObjectID () );
187
- if ( builderObj )
188
- builderID = builderObj->getID ();
189
185
190
186
// Kris: September 27, 2002
191
187
// Make sure we have enough CASH to build it! It's possible that between the
@@ -220,6 +216,8 @@ GameMessageDisposition PlaceEventTranslator::translateGameMessage(const GameMess
220
216
break ;
221
217
}
222
218
219
+ DEBUG_ASSERTCRASH (builderObj != NULL , (" builderObj is NULL" ));
220
+
223
221
// check to see if this is a legal location to build something at
224
222
LegalBuildCode lbc;
225
223
lbc = TheBuildAssistant->isLocationLegalToBuild ( &world,
You can’t perform that action at this time.
0 commit comments