Mercurial > mm7
comparison Vis.cpp @ 2396:6997e2ad913b
_46BFFA_check_object_intercept refactor
author | zipi |
---|---|
date | Sun, 06 Jul 2014 16:27:17 +0100 |
parents | 56f87a5c402b |
children | f4af3b203f65 |
comparison
equal
deleted
inserted
replaced
2395:eba7123e4a2d | 2396:6997e2ad913b |
---|---|
260 { | 260 { |
261 ownerSprite = &pSprites_LOD->pHardwareSprites[i]; | 261 ownerSprite = &pSprites_LOD->pHardwareSprites[i]; |
262 break; | 262 break; |
263 } | 263 } |
264 } | 264 } |
265 | |
266 if (ownerSprite == nullptr) | |
267 return false; | |
265 | 268 |
266 int i = ownerSprite->uAreaX + int(ownerSprite->uAreaWidth * (x - drX) / drW); | 269 int i = ownerSprite->uAreaX + int(ownerSprite->uAreaWidth * (x - drX) / drW); |
267 int j = ownerSprite->uAreaY + int(ownerSprite->uAreaHeight * (y - drY) / drH); | 270 int j = ownerSprite->uAreaY + int(ownerSprite->uAreaHeight * (y - drY) / drH); |
268 | 271 |
269 | 272 |