Remove extraneous function

Remove extraneous function makeScriptCall which is no longer used.
This commit is contained in:
Olathuss 2025-03-25 10:47:35 -06:00
parent 32bc068f7f
commit df5ffd9e10
2 changed files with 0 additions and 27 deletions

View file

@ -240,31 +240,6 @@ void GameTSCtrl::renderWorld(const RectI &updateRect)
GameRenderWorld();
}
//---------------------------------------------------------------------------
void GameTSCtrl::makeScriptCall(const char *func, const GuiEvent &evt) const
{
// write screen position
char *sp = Con::getArgBuffer(32);
dSprintf(sp, 32, "%d %d", evt.mousePoint.x, evt.mousePoint.y);
// write world position
char *wp = Con::getArgBuffer(32);
Point3F camPos;
mLastCameraQuery.cameraMatrix.getColumn(3, &camPos);
dSprintf(wp, 32, "%g %g %g", camPos.x, camPos.y, camPos.z);
// write click vector
char *vec = Con::getArgBuffer(32);
Point3F fp(evt.mousePoint.x, evt.mousePoint.y, 1.0);
Point3F ray;
unproject(fp, &ray);
ray -= camPos;
ray.normalizeSafe();
dSprintf(vec, 32, "%g %g %g", ray.x, ray.y, ray.z);
Con::executef( (SimObject*)this, func, sp, wp, vec );
}
//------------------------------------------------------------------------------
void GameTSCtrl::sendMouseEvent(const char *name, const GuiEvent &event)
{

View file

@ -39,8 +39,6 @@ class GameTSCtrl : public GuiTSCtrl
private:
typedef GuiTSCtrl Parent;
void makeScriptCall(const char *func, const GuiEvent &evt) const;
void sendMouseEvent(const char *name, const GuiEvent &evt);
protected: