if(csqcplayer)
{
- entity oldself;
- oldself = self;
- self = csqcplayer;
+ entity oldself = self;
+ setself(csqcplayer);
if(servercommandframe == 0 || clientcommandframe == 0)
{
// relink
setorigin(self, self.origin);
- self = oldself;
+ setself(oldself);
}
entity view;
if(view && view != csqcplayer)
{
- entity oldself = self;
- self = view;
- InterpolateOrigin_Do();
+ SELFCALL(view, InterpolateOrigin_Do());
self.view_ofs = '0 0 1' * getstati(STAT_VIEWHEIGHT);
- self = oldself;
+ SELFCALL_DONE();
}
if(view)